fix screws bugs relating to oversizing

This commit is contained in:
Adrian Mariano
2023-02-16 19:59:21 -05:00
parent 11b80e6e9a
commit d47e5a5d0d
3 changed files with 59 additions and 48 deletions

View File

@@ -31,6 +31,7 @@ module test_struct_remove() {
assert(struct_remove(st, ["Baz","Baz"]) == [["Foo",91],["Bar",28]]);
assert(struct_remove(st, ["Baz","Foo"]) == [["Bar",28]]);
assert(struct_remove(st, []) == st);
assert(struct_remove(st, ["Bar","niggle"]) == [["Foo",91],["Baz",9]]);
assert(struct_remove(st, struct_keys(st)) == []);
}
test_struct_remove();