From 3d0d34850d7c8fa00b5496bba615b7f45400a769 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Fri, 8 Nov 2019 17:34:01 -0800 Subject: [PATCH] Added regressions for cubetruss.scad --- tests/test_cubetruss.scad | 14 ++++++++++++++ version.scad | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 tests/test_cubetruss.scad diff --git a/tests/test_cubetruss.scad b/tests/test_cubetruss.scad new file mode 100644 index 0000000..fe5095b --- /dev/null +++ b/tests/test_cubetruss.scad @@ -0,0 +1,14 @@ +include +include + + +module test_cubetruss_dist() { + assert(cubetruss_dist(5,1,size=30,strut=3) == 138); + assert(cubetruss_dist(3,2,size=30,strut=3) == 87); + assert(cubetruss_dist(5,1,size=20,strut=2) == 92); + assert(cubetruss_dist(3,2,size=20,strut=2) == 58); +} +test_cubetruss_dist(); + + +// vim: noexpandtab tabstop=4 shiftwidth=4 softtabstop=4 nowrap diff --git a/version.scad b/version.scad index 58491cc..699ac3f 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,18]; +BOSL_VERSION = [2,0,19]; // Section: BOSL Library Version Functions