summary refs log tree commit diff stats
path: root/tests/lexer/tstrlits.nim
blob: f5b7ce93719d63820e22acb25eb2ea877a19c3b7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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