aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/text.nom31
1 files changed, 31 insertions, 0 deletions
diff --git a/tests/text.nom b/tests/text.nom
index 004a630..72eebac 100644
--- a/tests/text.nom
+++ b/tests/text.nom
@@ -22,3 +22,34 @@ immediately
"\(%)世界"
assume ((%こんにちは と言う) = "こんにちは世界") or barf "Unicode doesn't work"
+
+%s <- ".."
+ one two\nthree\
+ ..four
+assume (%s = "one two\\nthreefour")
+%s <- ".."
+ list:\[..]
+ 1,2,3
+ ..
+assume (%s = "list:{1, 2, 3}")
+
+assume
+ ".."
+ foo = \
+ 1 + 2
+ ..!
+ ..= "foo = 3!"
+
+assume
+ ".."
+ one\"\n"two
+ ..= "one\ntwo"
+
+assume
+ ".."
+ no\ # Comment
+ #comment
+ #..
+ block comment
+ ..gap
+ ..= "nogap"