summary refs log tree commit diff stats
path: root/tests/lexer/tstrlits.nim
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lexer/tstrlits.nim')
-rw-r--r--tests/lexer/tstrlits.nim20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/lexer/tstrlits.nim b/tests/lexer/tstrlits.nim
new file mode 100644
index 000000000..1cd43975a
--- /dev/null
+++ b/tests/lexer/tstrlits.nim
@@ -0,0 +1,20 @@
+discard """
+  file: "tstrlits.nim"
+  output: "a\"\"long string\"\"\"\"\"abc\"def"
+"""
+# Test the new different string literals
+
+const
+  tripleEmpty = """"long string"""""""" # "long string """""
+  
+  rawQuote = r"a"""
+  
+  raw = r"abc""def"
+
+stdout.write(rawQuote)
+stdout.write(tripleEmpty)
+stdout.write(raw)
+#OUT a""long string"""""abc"def
+
+
+