llvm-project
101 строка · 1.3 Кб
1# RUN: yaml-bench -canonical %s | FileCheck %s
2# CHECK: ? !!str "literal_strip"
3# CHECK: : !!str "Hello\n\n\nworld\non\nmultiple \n\n\nlines\n\nfoo bar"
4# CHECK: ? !!str "literal_clip"
5# CHECK: : !!str "Hello\n\n\nworld\non\nmultiple \n\n\nlines\n\nfoo bar\n"
6# CHECK: ? !!str "literal_keep"
7# CHECK: : !!str "Hello\n\n\nworld\non\nmultiple \n\n\nlines\n\nfoo bar\n\n\n\n"
8# CHECK: ? !!str "folded_strip"
9# CHECK: : !!str "Hello\n\nworld on multiple \n\nlines\nfoo bar"
10# CHECK: ? !!str "folded_clip"
11# CHECK: : !!str "Hello\n\nworld on multiple \n\nlines\nfoo bar\n"
12# CHECK: ? !!str "folded_keep"
13# CHECK: : !!str "Hello\n\nworld on multiple \n\nlines\nfoo bar\n\n\n"
14
15literal_strip: |-
16Hello
17
18
19world
20on
21multiple
22
23
24lines
25
26foo bar
27
28
29
30literal_clip: |
31Hello
32
33
34world
35on
36multiple
37
38
39lines
40
41foo bar
42
43
44
45literal_keep: |+
46Hello
47
48
49world
50on
51multiple
52
53
54lines
55
56foo bar
57
58
59
60folded_strip: >-
61Hello
62
63
64world
65on
66multiple
67
68
69lines
70
71foo bar
72
73
74
75folded_clip: >
76Hello
77
78
79world
80on
81multiple
82
83
84lines
85
86foo bar
87
88
89
90folded_keep: >+
91Hello
92
93
94world
95on
96multiple
97
98
99lines
100
101foo bar
102
103
104