summaryrefslogtreecommitdiff
path: root/tests/lang/typ/expr-prec.typ
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2021-02-17 21:30:20 +0100
committerLaurenz <laurmaedje@gmail.com>2021-02-17 21:30:20 +0100
commit2f4dc99cec1c6fa33257dea91ab3bcd99b1cbdf5 (patch)
treeeb983e54bac5ae226474bd8c5d6a29006b00ff12 /tests/lang/typ/expr-prec.typ
parentdb1659a987cd240b78e45666617248d3d0cc7d64 (diff)
Refresh tests 🌊
Diffstat (limited to 'tests/lang/typ/expr-prec.typ')
-rw-r--r--tests/lang/typ/expr-prec.typ16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/lang/typ/expr-prec.typ b/tests/lang/typ/expr-prec.typ
index fea5f794..738e8fdf 100644
--- a/tests/lang/typ/expr-prec.typ
+++ b/tests/lang/typ/expr-prec.typ
@@ -3,14 +3,14 @@
---
// Multiplication binds stronger than addition.
-#[test 1+2*-3, -5]
+#test(1+2*-3, -5)
// Subtraction binds stronger than comparison.
-#[test 3 == 5 - 2, true]
+#test(3 == 5 - 2, true)
// Boolean operations bind stronger than '=='.
-#[test "a" == "a" and 2 < 3, true]
-#[test not "b" == "b", false]
+#test("a" == "a" and 2 < 3, true)
+#test(not "b" == "b", false)
// Assignment binds stronger than boolean operations.
// Error: 2-7 cannot assign to this expression
@@ -18,11 +18,11 @@
---
// Parentheses override precedence.
-#[test (1), 1]
-#[test (1+2)*-3, -9]
+#test((1), 1)
+#test((1+2)*-3, -9)
-// Error: 15-15 expected closing paren
-#[test {(1 + 1}, 2]
+// Error: 15 expected closing paren
+#test({(1 + 1}, 2)
---
// Precedence doesn't matter for chained unary operators.