Added tests for struct_val() with default value

This commit is contained in:
Marcin Jaworski 2020-11-13 17:19:29 +01:00
parent 4cda1bf488
commit 8cd7530743

View file

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