mirror of
https://github.com/BelfrySCAD/BOSL2.git
synced 2024-12-29 16:29:40 +00:00
Added tests for struct_val() with default value
This commit is contained in:
parent
4cda1bf488
commit
8cd7530743
1 changed files with 3 additions and 0 deletions
|
@ -27,6 +27,9 @@ module test_struct_val() {
|
|||
assert(struct_val(st,"Foo") == 91);
|
||||
assert(struct_val(st,"Bar") == 28);
|
||||
assert(struct_val(st,"Baz") == 9);
|
||||
assert(struct_val(st,"Baz",5) == 9);
|
||||
assert(struct_val(st,"Qux") == undef);
|
||||
assert(struct_val(st,"Qux",5) == 5);
|
||||
}
|
||||
test_struct_val();
|
||||
|
||||
|
|
Loading…
Reference in a new issue