mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-01-16 21:58:27 +01:00
commented out test for removed function
added test for find_noncollinear_points where no such points exist
This commit is contained in:
parent
e222d26136
commit
b7b276099f
@ -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();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user