Regressions for repeat() fixed.

This commit is contained in:
Revar Desmera 2020-03-04 20:29:17 -08:00
parent 0571425ce7
commit 19ed457e38
2 changed files with 7 additions and 7 deletions

View file

@ -3,13 +3,13 @@ include <BOSL2/std.scad>
// List/Array Ops
module test_replist() {
assert(replist(1, 4) == [1,1,1,1]);
assert(replist(8, [2,3]) == [[8,8,8], [8,8,8]]);
assert(replist(0, [2,2,3]) == [[[0,0,0],[0,0,0]], [[0,0,0],[0,0,0]]]);
assert(replist([1,2,3],3) == [[1,2,3], [1,2,3], [1,2,3]]);
module test_repeat() {
assert(repeat(1, 4) == [1,1,1,1]);
assert(repeat(8, [2,3]) == [[8,8,8], [8,8,8]]);
assert(repeat(0, [2,2,3]) == [[[0,0,0],[0,0,0]], [[0,0,0],[0,0,0]]]);
assert(repeat([1,2,3],3) == [[1,2,3], [1,2,3], [1,2,3]]);
}
test_replist();
test_repeat();
module test_in_list() {

View file

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