aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-10-09.yaml
blob: 15430569222120b44d77fb5f7914a31987d79f52 (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
%YAML 1.1
---
- name: spec-10-09
  yaml: |
    {
    key : value,
    empty: # empty value↓
    }
  tree: |
    +STR
      +DOC
        +MAP {}
          =VAL :key
          =VAL :value
          =VAL :empty
          =VAL :
        -MAP
      -DOC
    -STR
- name: spec-10-09-canonical
  yaml: |
    %YAML 1.1
    ---
    !!map {
      ? !!str "key"
      : !!str "value",
      ? !!str "empty"
      : !!null "",
    }
  tree: |
    +STR
      +DOC ---
        +MAP {} <tag:yaml.org,2002:map>
          =VAL <tag:yaml.org,2002:str> "key
          =VAL <tag:yaml.org,2002:str> "value
          =VAL <tag:yaml.org,2002:str> "empty
          =VAL <tag:yaml.org,2002:null> "
        -MAP
      -DOC
    -STR