diff --git a/tests/test_geometry.scad b/tests/test_geometry.scad index 78c3e57..8f780f4 100644 --- a/tests/test_geometry.scad +++ b/tests/test_geometry.scad @@ -519,6 +519,7 @@ module test_polygon_shift_to_closest_point() { test_polygon_shift_to_closest_point(); +/* module test_first_noncollinear(){ pts = [ [1,1], [2,2], [3,3], [4,4], [4,5], [5,6] @@ -555,11 +556,14 @@ module test_first_noncollinear(){ assert(first_noncollinear(5,4,pts) == 0); } test_first_noncollinear(); +*/ module test_find_noncollinear_points() { assert(find_noncollinear_points([[1,1],[2,2],[3,3],[4,4],[4,5],[5,6]]) == [0,5,3]); assert(find_noncollinear_points([[1,1],[2,2],[8,3],[4,4],[4,5],[5,6]]) == [0,2,5]); + u = unit([5,3]); + assert_equal(find_noncollinear_points([for(i = [2,3,4,5,7,12,15]) i * u], error=false),[]); } test_find_noncollinear_points();