aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-10-14.yaml
blob: 4c31edf5479dda3b86fd2dd77a2f182f124c50a7 (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
%YAML 1.1
---
- name: spec-10-14
  yaml: |
    plain key: # empty value
    "quoted key":
    - one # explicit next-line
    - two # block value
  tree: |
    +STR
      +DOC
        +MAP
          =VAL :plain key
          =VAL :
          =VAL "quoted key
          +SEQ
            =VAL :one
            =VAL :two
          -SEQ
        -MAP
      -DOC
    -STR
- name: spec-10-14-canonical
  yaml: |
    %YAML 1.1
    ---
    !!map {
      ? !!str "plain key"
      : !!null "",
      ? !!str "quoted key"
      : !!seq [
        !!str "one",
        !!str "two",
      ]
    }
  tree: |
    +STR
      +DOC ---
        +MAP {} <tag:yaml.org,2002:map>
          =VAL <tag:yaml.org,2002:str> "plain key
          =VAL <tag:yaml.org,2002:null> "
          =VAL <tag:yaml.org,2002:str> "quoted key
          +SEQ [] <tag:yaml.org,2002:seq>
            =VAL <tag:yaml.org,2002:str> "one
            =VAL <tag:yaml.org,2002:str> "two
          -SEQ
        -MAP
      -DOC
    -STR