summaryrefslogtreecommitdiff
path: root/test/asset/parser
diff options
context:
space:
mode:
Diffstat (limited to 'test/asset/parser')
-rw-r--r--test/asset/parser/function.et6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/asset/parser/function.et b/test/asset/parser/function.et
index 3eca414..2a096b9 100644
--- a/test/asset/parser/function.et
+++ b/test/asset/parser/function.et
@@ -4,6 +4,12 @@ def g (x) and y = (x + (y+1))
test Test:
guard (1 == 1)
+ guard (1 /= 2)
+ let x = 2
+ guard (x == x)
+ guard (x /= 1)
+ guard (x /= x + 1)
+
guard (f 1 and 2 == 4)
guard (f 1 and 2 == g 1 and 2)
guard (f 1 and (g 2 and 3) == g 1 and 2 + 4)