Added tests for path3d() and path4d() with fille=

This commit is contained in:
Garth Minette 2020-08-18 19:25:05 -07:00
parent 92d9c49b90
commit 5e981fb4a7
2 changed files with 5 additions and 1 deletions

View file

@ -29,6 +29,7 @@ test_point3d();
module test_path3d() {
assert(path3d([[1,2], [3,4], [5,6], [7,8]])==[[1,2,0],[3,4,0],[5,6,0],[7,8,0]]);
assert(path3d([[1,2], [3,4], [5,6], [7,8]],9)==[[1,2,9],[3,4,9],[5,6,9],[7,8,9]]);
assert(path3d([[1,2,3], [2,3,4], [3,4,5], [4,5,6]])==[[1,2,3],[2,3,4],[3,4,5],[4,5,6]]);
assert(path3d([[1,2,3,4], [2,3,4,5], [3,4,5,6], [4,5,6,7]])==[[1,2,3],[2,3,4],[3,4,5],[4,5,6]]);
}
@ -41,6 +42,9 @@ module test_point4d() {
assert(point4d([1,2,3])==[1,2,3,0]);
assert(point4d([2,3])==[2,3,0,0]);
assert(point4d([1])==[1,0,0,0]);
assert(point4d([1,2,3],9)==[1,2,3,9]);
assert(point4d([2,3],9)==[2,3,9,9]);
assert(point4d([1],9)==[1,9,9,9]);
}
test_point4d();

View file

@ -8,7 +8,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,406];
BOSL_VERSION = [2,0,407];
// Section: BOSL Library Version Functions