diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/compiler/dict.typ | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/typ/compiler/dict.typ b/tests/typ/compiler/dict.typ index cba2b618..92cacdb3 100644 --- a/tests/typ/compiler/dict.typ +++ b/tests/typ/compiler/dict.typ @@ -41,6 +41,16 @@ #test((a: 1, b: 2).at("c", default: 3), 3) --- +// Test insert. +#{ + let dict = (a: 1, b: 2) + dict.insert("b", 3) + test(dict, (a: 1, b: 3)) + dict.insert("c", 5) + test(dict, (a: 1, b: 3, c: 5)) +} + +--- // Test remove with default value. #{ let dict = (a: 1, b: 2) |
