diff --git a/tests/test_vectors.scad b/tests/test_vectors.scad index 7090c4f..399be01 100644 --- a/tests/test_vectors.scad +++ b/tests/test_vectors.scad @@ -20,6 +20,20 @@ module test_add_scalar() { test_add_scalar(); +module test_vfloor() { + assert_equal(vfloor([2.0, 3.14, 18.9, 7]), [2,3,18,7]); + assert_equal(vfloor([-2.0, -3.14, -18.9, -7]), [-2,-4,-19,-7]); +} +test_vfloor(); + + +module test_vceil() { + assert_equal(vceil([2.0, 3.14, 18.9, 7]), [2,4,19,7]); + assert_equal(vceil([-2.0, -3.14, -18.9, -7]), [-2,-3,-18,-7]); +} +test_vceil(); + + module test_vmul() { assert(vmul([3,4,5], [8,7,6]) == [24,28,30]); assert(vmul([1,2,3], [4,5,6]) == [4,10,18]); diff --git a/version.scad b/version.scad index de50e10..e07b854 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,361]; +BOSL_VERSION = [2,0,362]; // Section: BOSL Library Version Functions