mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2025-01-01 09:49:45 +00:00
Regressions for repeat() fixed.
This commit is contained in:
parent
0571425ce7
commit
19ed457e38
2 changed files with 7 additions and 7 deletions
|
@ -3,13 +3,13 @@ include <BOSL2/std.scad>
|
||||||
|
|
||||||
// List/Array Ops
|
// List/Array Ops
|
||||||
|
|
||||||
module test_replist() {
|
module test_repeat() {
|
||||||
assert(replist(1, 4) == [1,1,1,1]);
|
assert(repeat(1, 4) == [1,1,1,1]);
|
||||||
assert(replist(8, [2,3]) == [[8,8,8], [8,8,8]]);
|
assert(repeat(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(repeat(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]]);
|
assert(repeat([1,2,3],3) == [[1,2,3], [1,2,3], [1,2,3]]);
|
||||||
}
|
}
|
||||||
test_replist();
|
test_repeat();
|
||||||
|
|
||||||
|
|
||||||
module test_in_list() {
|
module test_in_list() {
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
|
|
||||||
BOSL_VERSION = [2,0,154];
|
BOSL_VERSION = [2,0,155];
|
||||||
|
|
||||||
|
|
||||||
// Section: BOSL Library Version Functions
|
// Section: BOSL Library Version Functions
|
||||||
|
|
Loading…
Reference in a new issue