mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Fixed errors in common.scad regressions.
This commit is contained in:
parent
a13a09db8d
commit
4f8b9fe7e8
2 changed files with 9 additions and 5 deletions
|
@ -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();
|
||||
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
//////////////////////////////////////////////////////////////////////
|
||||
|
||||
|
||||
BOSL_VERSION = [2,0,545];
|
||||
BOSL_VERSION = [2,0,546];
|
||||
|
||||
|
||||
// Section: BOSL Library Version Functions
|
||||
|
|
Loading…
Reference in a new issue