From 5e981fb4a716f9fe2ab3dcf6c9f7245fc7d752c4 Mon Sep 17 00:00:00 2001 From: Garth Minette Date: Tue, 18 Aug 2020 19:25:05 -0700 Subject: [PATCH] Added tests for path3d() and path4d() with fille= --- tests/test_coords.scad | 4 ++++ version.scad | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/test_coords.scad b/tests/test_coords.scad index 4b89c12..9fccd65 100644 --- a/tests/test_coords.scad +++ b/tests/test_coords.scad @@ -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(); diff --git a/version.scad b/version.scad index 627ee3d..3d457d6 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,406]; +BOSL_VERSION = [2,0,407]; // Section: BOSL Library Version Functions