mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-17 21:51:45 +02:00
Regressions for repeat() fixed.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user