bolt/deps/llvm-18.1.8/llvm/test/YAMLParser/plain-characters.test

31 lines
807 B
Text
Raw Normal View History

2025-02-14 19:21:04 +01:00
# 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: ]