summary refs log tree commit diff stats
path: root/tests/accept/run/tstrlits.nim
blob: 1cd43975a690cffa416503edd81c0ba2a4c2a450 (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