xref: /llvm-project/llvm/test/YAMLParser/plain-characters.test (revision 4480e650b3cf7cc63cfd3767cd6b120f8bfad2ac)
1# RUN: yaml-bench -canonical %s | FileCheck %s
2# Example from https://yaml.org/spec/1.2.2/#example-plain-characters
3
4# Outside flow collection:
5- ::vector
6- ": - ()"
7- Up, up, and away!
8- -123
9- https://example.com/foo#bar
10# Inside flow collection:
11- [ ::vector,
12  ": - ()",
13  "Up, up and away!",
14  -123,
15  https://example.com/foo#bar ]
16
17# CHECK: !!seq [
18# CHECK-NEXT:   !!str "::vector",
19# CHECK-NEXT:   !!str ": - ()",
20# CHECK-NEXT:   !!str "Up, up, and away!",
21# CHECK-NEXT:   !!str "-123",
22# CHECK-NEXT:   !!str "https://example.com/foo#bar",
23# CHECK-NEXT:   !!seq [
24# CHECK-NEXT:     !!str "::vector",
25# CHECK-NEXT:     !!str ": - ()",
26# CHECK-NEXT:     !!str "Up, up and away!",
27# CHECK-NEXT:     !!str "-123",
28# CHECK-NEXT:     !!str "https://example.com/foo#bar",
29# CHECK-NEXT:   ],
30# CHECK-NEXT: ]
31