aboutsummaryrefslogtreecommitdiff
path: root/llvm/test/YAMLParser/plain-characters.test
blob: f22016bcb9bca4a01794794008cd350fd3983473 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# RUN: yaml-bench -canonical %s | FileCheck %s
# Example from https://yaml.org/spec/1.2.2/#example-plain-characters

# Outside flow collection:
- ::vector
- ": - ()"
- Up, up, and away!
- -123
- https://example.com/foo#bar
# Inside flow collection:
- [ ::vector,
  ": - ()",
  "Up, up and away!",
  -123,
  https://example.com/foo#bar ]

# CHECK: !!seq [
# CHECK-NEXT:   !!str "::vector",
# CHECK-NEXT:   !!str ": - ()",
# CHECK-NEXT:   !!str "Up, up, and away!",
# CHECK-NEXT:   !!str "-123",
# CHECK-NEXT:   !!str "https://example.com/foo#bar",
# CHECK-NEXT:   !!seq [
# CHECK-NEXT:     !!str "::vector",
# CHECK-NEXT:     !!str ": - ()",
# CHECK-NEXT:     !!str "Up, up and away!",
# CHECK-NEXT:     !!str "-123",
# CHECK-NEXT:     !!str "https://example.com/foo#bar",
# CHECK-NEXT:   ],
# CHECK-NEXT: ]