From 19ed457e389f0c3136f4b6dd1d84059d1f1b6364 Mon Sep 17 00:00:00 2001 From: Revar Desmera Date: Wed, 4 Mar 2020 20:29:17 -0800 Subject: [PATCH] Regressions for repeat() fixed. --- tests/test_arrays.scad | 12 ++++++------ version.scad | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/test_arrays.scad b/tests/test_arrays.scad index be6b4ab..68009fc 100644 --- a/tests/test_arrays.scad +++ b/tests/test_arrays.scad @@ -3,13 +3,13 @@ include // 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() { diff --git a/version.scad b/version.scad index 75ef8de..b9886fc 100644 --- a/version.scad +++ b/version.scad @@ -8,7 +8,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,154]; +BOSL_VERSION = [2,0,155]; // Section: BOSL Library Version Functions