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