aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-08-01.yaml
blob: 38bc9589019c026a83790fa2ca8cc74bc433310b (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
%YAML 1.1
---
- name: spec-08-01
  yaml: |
    !!str &a1 "foo" : !!str bar
    &a2 baz : *a1
  tree: |
    +STR
      +DOC
        +MAP
          =VAL &a1 <tag:yaml.org,2002:str> "foo
          =VAL <tag:yaml.org,2002:str> :bar
          =VAL &a2 :baz
          =ALI *a1
        -MAP
      -DOC
    -STR
- name: spec-08-01-canonical
  yaml: |
    %YAML 1.1
    ---
    !!map {
      ? &A1 !!str "foo"
      : !!str "bar",
      ? &A2 !!str "baz"
      : *A1
    }
  tree: |
    +STR
      +DOC ---
        +MAP {} <tag:yaml.org,2002:map>
          =VAL &A1 <tag:yaml.org,2002:str> "foo
          =VAL <tag:yaml.org,2002:str> "bar
          =VAL &A2 <tag:yaml.org,2002:str> "baz
          =ALI *A1
        -MAP
      -DOC
    -STR