summary refs log tree commit diff stats
path: root/tests
diff options
context:
space:
mode:
authorOscar Nihlgård <oscarnihlgard@gmail.com>2018-10-17 00:14:22 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-10-17 00:14:22 +0200
commit163e9de3c2c59698d4e4fc474e1580570a67b645 (patch)
treedd2a323bdded84d99d3efe6a2d8d92f248de818e /tests
parent0d48bafcf08bb2be72029ccebc745b5594d49731 (diff)
downloadNim-163e9de3c2c59698d4e4fc474e1580570a67b645.tar.gz
Unicode escape in string literals (#9390)
Diffstat (limited to 'tests')
-rw-r--r--tests/lexer/tstrlits.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/lexer/tstrlits.nim b/tests/lexer/tstrlits.nim
index cc8872f60..d13baf7ff 100644
--- a/tests/lexer/tstrlits.nim
+++ b/tests/lexer/tstrlits.nim
@@ -1,6 +1,6 @@
 discard """
   file: "tstrlits.nim"
-  output: "a\"\"long string\"\"\"\"\"abc\"def_'2'●"
+  output: "a\"\"long string\"\"\"\"\"abc\"def_'2'●𝌆𝌆A"
 """
 # Test the new different string literals
 
@@ -11,14 +11,14 @@ const
 
   raw = r"abc""def"
 
-  escaped = "\x5f'\50'\u25cf"
+  escaped = "\x5f'\50'\u25cf\u{1D306}\u{1d306}\u{41}"
 
 
 stdout.write(rawQuote)
 stdout.write(tripleEmpty)
 stdout.write(raw)
 stdout.write(escaped)
-#OUT a""long string"""""abc"def
+#OUT a""long string"""""abc"def_'2'●𝌆𝌆A