diff options
Diffstat (limited to 'tests/typ')
| -rw-r--r-- | tests/typ/code/dict.typ | 2 | ||||
| -rw-r--r-- | tests/typ/code/ops.typ | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests/typ/code/dict.typ b/tests/typ/code/dict.typ index 182f53d9..344d8efc 100644 --- a/tests/typ/code/dict.typ +++ b/tests/typ/code/dict.typ @@ -39,8 +39,8 @@ // Missing lvalue is automatically none-initialized. { let dict = (:) - // Error: 3-17 cannot add none and integer dict("b") += 1 + test(dict, (b: 1)) } --- diff --git a/tests/typ/code/ops.typ b/tests/typ/code/ops.typ index 33a1a4a4..012b8c87 100644 --- a/tests/typ/code/ops.typ +++ b/tests/typ/code/ops.typ @@ -27,6 +27,8 @@ // Addition. #test(2 + 4, 6) #test("a" + "b", "ab") +#test("a" + if false { "b" }, "a") +#test("a" + if true { "b" }, "ab") #test(13 * "a" + "bbbbbb", "aaaaaaaaaaaaabbbbbb") #test((1, 2) + (3, 4), (1, 2, 3, 4)) #test((a: 1) + (b: 2, c: 3), (a: 1, b: 2, c: 3)) |
