From 163e9de3c2c59698d4e4fc474e1580570a67b645 Mon Sep 17 00:00:00 2001 From: Oscar Nihlgård Date: Wed, 17 Oct 2018 00:14:22 +0200 Subject: Unicode escape in string literals (#9390) --- tests/lexer/tstrlits.nim | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests') 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 -- cgit 1.4.1-2-gfad0