aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-09-12.yaml
blob: 1fd24da428ce0a89bfa5942d6796014adb0f3ee7 (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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
%YAML 1.1
---
- name: spec-09-12
  yaml: |
    # Outside flow collection:
    - ::std::vector
    - Up, up, and away!
    - -123
    # Inside flow collection:
    - [ '::std::vector',
      "Up, up, and away!",
      -123 ]
  tree: |
    +STR
      +DOC
        +SEQ
          =VAL :::std::vector
          =VAL :Up, up, and away!
          =VAL :-123
          +SEQ []
            =VAL '::std::vector
            =VAL "Up, up, and away!
            =VAL :-123
          -SEQ
        -SEQ
      -DOC
    -STR
- name: spec-09-12-canonical
  yaml: |
    %YAML 1.1
    ---
    !!seq [
      !!str "::std::vector",
      !!str "Up, up, and away!",
      !!int "-123",
      !!seq [
        !!str "::std::vector",
        !!str "Up, up, and away!",
        !!int "-123",
      ]
    ]
  tree: |
    +STR
      +DOC ---
        +SEQ [] <tag:yaml.org,2002:seq>
          =VAL <tag:yaml.org,2002:str> "::std::vector
          =VAL <tag:yaml.org,2002:str> "Up, up, and away!
          =VAL <tag:yaml.org,2002:int> "-123
          +SEQ [] <tag:yaml.org,2002:seq>
            =VAL <tag:yaml.org,2002:str> "::std::vector
            =VAL <tag:yaml.org,2002:str> "Up, up, and away!
            =VAL <tag:yaml.org,2002:int> "-123
          -SEQ
        -SEQ
      -DOC
    -STR