diff --git a/tests/test_common.scad b/tests/test_common.scad index 268640a..2397437 100644 --- a/tests/test_common.scad +++ b/tests/test_common.scad @@ -276,10 +276,14 @@ test_first_defined(); module test_one_defined() { - assert_equal(one_defined([27,undef,undef], "length,L,l"]) ,27); - assert_equal(one_defined([undef,28,undef], "length,L,l"]) ,28); - assert_equal(one_defined([undef,undef,29], "length,L,l"]) ,29); - assert_equal(one_defined([undef,undef,undef], "length,L,l"], dflt=undef), undef); + assert_equal(one_defined([27,undef,undef], "length,L,l") ,27); + assert_equal(one_defined([undef,28,undef], "length,L,l") ,28); + assert_equal(one_defined([undef,undef,29], "length,L,l") ,29); + assert_equal(one_defined([undef,undef,undef], "length,L,l", dflt=undef), undef); + assert_equal(one_defined([27,undef,undef], ["length","L","l"]) ,27); + assert_equal(one_defined([undef,28,undef], ["length","L","l"]) ,28); + assert_equal(one_defined([undef,undef,29], ["length","L","l"]) ,29); + assert_equal(one_defined([undef,undef,undef], ["length","L","l"], dflt=undef), undef); } test_one_defined(); diff --git a/version.scad b/version.scad index 9a023d8..41e6841 100644 --- a/version.scad +++ b/version.scad @@ -6,7 +6,7 @@ ////////////////////////////////////////////////////////////////////// -BOSL_VERSION = [2,0,545]; +BOSL_VERSION = [2,0,546]; // Section: BOSL Library Version Functions