Added regressions for vfloor() and vceil()

This commit is contained in:
Revar Desmera 2020-06-20 21:42:22 -07:00
parent 0c612f40f6
commit 012c8d555d
2 changed files with 15 additions and 1 deletions

View file

@ -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]);

View file

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