v / vlib / toml / tests / testdata / strings_test.toml
27 lines · 22 sloc · 557 bytes · 8705db58443ebb310272305d7f39e3a6b0f23c00
Raw
1# Make sure that quotes inside multiline strings are allowed, including right
2# after the opening '''/""" and before the closing '''/"""
3
4lit_one = ''''one quote''''
5lit_two = '''''two quotes'''''
6lit_one_space = ''' 'one quote' '''
7lit_two_space = ''' ''two quotes'' '''
8
9one = """"one quote""""
10two = """""two quotes"""""
11one_space = """ "one quote" """
12two_space = """ ""two quotes"" """
13
14mismatch1 = """aaa'''bbb"""
15mismatch2 = '''aaa"""bbb'''
16
17lit1 = '\'
18lit2 = '\\'
19lit3 = '\tricky\'
20
21ml_lit1 = '''
22\'''
23ml_lit2 = '''\
24\'''
25ml_lit3 = '''\
26tricky\
27'''
28