Fixed errors in common.scad regressions.

This commit is contained in:
Garth Minette 2021-01-28 17:06:53 -08:00
parent a13a09db8d
commit 4f8b9fe7e8
2 changed files with 9 additions and 5 deletions

View file

@ -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();

View file

@ -6,7 +6,7 @@
//////////////////////////////////////////////////////////////////////
BOSL_VERSION = [2,0,545];
BOSL_VERSION = [2,0,546];
// Section: BOSL Library Version Functions