aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-10-05.yaml
blob: a16ab82fcfb38985ec77e649a4ab6fb81a8b0802 (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
57
58
59
60
61
%YAML 1.1
---
- name: spec-10-05
  yaml: |
    - # Empty
    - |
     block node
    - - one # in-line
      - two # sequence
    - one: two # in-line
               # mapping
  tree: |
    +STR
      +DOC
        +SEQ
          =VAL :
          =VAL |block node\n
          +SEQ
            =VAL :one
            =VAL :two
          -SEQ
          +MAP
            =VAL :one
            =VAL :two
          -MAP
        -SEQ
      -DOC
    -STR
- name: spec-10-05-canonical
  yaml: |
    %YAML 1.1
    ---
    !!seq [
      !!null "",
      !!str "block node\n",
      !!seq [
        !!str "one",
        !!str "two",
      ],
      !!map {
        ? !!str "one"
        : !!str "two",
      }
    ]
  tree: |
    +STR
      +DOC ---
        +SEQ [] <tag:yaml.org,2002:seq>
          =VAL <tag:yaml.org,2002:null> "
          =VAL <tag:yaml.org,2002:str> "block node\n
          +SEQ [] <tag:yaml.org,2002:seq>
            =VAL <tag:yaml.org,2002:str> "one
            =VAL <tag:yaml.org,2002:str> "two
          -SEQ
          +MAP {} <tag:yaml.org,2002:map>
            =VAL <tag:yaml.org,2002:str> "one
            =VAL <tag:yaml.org,2002:str> "two
          -MAP
        -SEQ
      -DOC
    -STR