summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/parser/tprecedence.nim8
1 files changed, 6 insertions, 2 deletions
diff --git a/tests/parser/tprecedence.nim b/tests/parser/tprecedence.nim
index 6b1b250a2..d2c6d0b30 100644
--- a/tests/parser/tprecedence.nim
+++ b/tests/parser/tprecedence.nim
@@ -1,11 +1,15 @@
 discard """
-  output: "true"
+  output: '''holla
+true'''
 """
 
+# Test top level semicolon works properly:
+import os; echo "holla"
+
 # Test the new predence rules
 
 proc `\+` (x, y: int): int = result = x + y
 proc `\*` (x, y: int): int = result = x * y
 
-echo 5 \+ 1 \* 9 == 14
+echo 5 \+ 1 \* 9 == 6*9