Files
Nim/tests/lexer/tstrlits.nim
2016-06-01 23:36:46 +02:00

25 lines
401 B
Nim

discard """
file: "tstrlits.nim"
output: "a\"\"long string\"\"\"\"\"abc\"def_'2'"
"""
# Test the new different string literals
const
tripleEmpty = """"long string"""""""" # "long string """""
rawQuote = r"a"""
raw = r"abc""def"
escaped = "\x5f'\50'\u25cf"
stdout.write(rawQuote)
stdout.write(tripleEmpty)
stdout.write(raw)
stdout.write(escaped)
#OUT a""long string"""""abc"def