diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-02-17 16:32:48 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-02-17 16:32:48 +0100 |
| commit | 028632a3a10202ee21eaaf7ecf13ca7fe331106e (patch) | |
| tree | ecba2b74b52b2c94b8ccf63dc8099d8ef608081c /tests/typ/compiler/ops.typ | |
| parent | dd5f07eb9110cc5e19dcb4441743a323128426fc (diff) | |
Fix error handling after hashtag
Diffstat (limited to 'tests/typ/compiler/ops.typ')
| -rw-r--r-- | tests/typ/compiler/ops.typ | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/typ/compiler/ops.typ b/tests/typ/compiler/ops.typ index 3e72476c..baa2898a 100644 --- a/tests/typ/compiler/ops.typ +++ b/tests/typ/compiler/ops.typ @@ -4,7 +4,7 @@ --- // Test adding content. // Ref: true -#{[*Hello* ] + [world!]} +#([*Hello* ] + [world!]) --- // Test math operators. @@ -176,17 +176,17 @@ // Test assignment operators. #let x = 0 -#{ x = 10 } #test(x, 10) -#{ x -= 5 } #test(x, 5) -#{ x += 1 } #test(x, 6) -#{ x *= x } #test(x, 36) -#{ x /= 2.0 } #test(x, 18.0) -#{ x = "some" } #test(x, "some") -#{ x += "thing" } #test(x, "something") +#(x = 10) #test(x, 10) +#(x -= 5) #test(x, 5) +#(x += 1) #test(x, 6) +#(x *= x) #test(x, 36) +#(x /= 2.0) #test(x, 18.0) +#(x = "some") #test(x, "some") +#(x += "thing") #test(x, "something") --- -// Error: 4-7 cannot mutate a constant -#{ box = 1 } +// Error: 3-6 cannot mutate a constant +#(box = 1) --- // Test `in` operator. @@ -205,7 +205,7 @@ --- // Error: 10 expected keyword `in` -#{"a" not} +#("a" not) --- // Test `with` method. |
