mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-02 11:12:37 +00:00
21 lines
344 B
Nim
21 lines
344 B
Nim
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
|
|
|
|
|
|
|