mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-12 23:08:18 -05:00
16 lines
466 B
Python
16 lines
466 B
Python
import conftest # Add root path to sys.path
|
|
from Mapping.point_cloud_sampling import point_cloud_sampling as m
|
|
|
|
|
|
def test_1(capsys):
|
|
m.do_plot = False
|
|
m.main()
|
|
captured = capsys.readouterr()
|
|
assert "voxel_sampling_points.shape=(27, 3)" in captured.out
|
|
assert "farthest_sampling_points.shape=(20, 3)" in captured.out
|
|
assert "poisson_disk_points.shape=(20, 3)" in captured.out
|
|
|
|
|
|
if __name__ == '__main__':
|
|
conftest.run_this_test(__file__)
|