mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-02-17 17:09:45 +00: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
1 changed files with 4 additions and 0 deletions
|
@ -519,6 +519,7 @@ module test_polygon_shift_to_closest_point() {
|
||||||
test_polygon_shift_to_closest_point();
|
test_polygon_shift_to_closest_point();
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
module test_first_noncollinear(){
|
module test_first_noncollinear(){
|
||||||
pts = [
|
pts = [
|
||||||
[1,1], [2,2], [3,3], [4,4], [4,5], [5,6]
|
[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);
|
assert(first_noncollinear(5,4,pts) == 0);
|
||||||
}
|
}
|
||||||
test_first_noncollinear();
|
test_first_noncollinear();
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
module test_find_noncollinear_points() {
|
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],[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]);
|
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();
|
test_find_noncollinear_points();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue