aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/spec 1.1/spec-08-12.yaml
blob: fb784d8389b4fa9b01f309e64f29ee942cf83093 (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
%YAML 1.1
---
- name: spec-08-12
  yaml: |
    [
      Without properties,
      &anchor "Anchored",
      !!str 'Tagged',
      *anchor, # Alias node
      !!str ,  # Empty plain scalar
      '',   # Empty plain scalar
    ]
  tree: |
    +STR
      +DOC
        +SEQ []
          =VAL :Without properties
          =VAL &anchor "Anchored
          =VAL <tag:yaml.org,2002:str> 'Tagged
          =ALI *anchor
          =VAL <tag:yaml.org,2002:str> :
          =VAL '
        -SEQ
      -DOC
    -STR
- name: spec-08-12-canonical
  yaml: |
    %YAML 1.1
    ---
    !!seq [
      !!str "Without properties",
      &A !!str "Anchored",
      !!str "Tagged",
      *A,
      !!str "",
      !!str "",
    ]
  tree: |
    +STR
      +DOC ---
        +SEQ [] <tag:yaml.org,2002:seq>
          =VAL <tag:yaml.org,2002:str> "Without properties
          =VAL &A <tag:yaml.org,2002:str> "Anchored
          =VAL <tag:yaml.org,2002:str> "Tagged
          =ALI *A
          =VAL <tag:yaml.org,2002:str> "
          =VAL <tag:yaml.org,2002:str> "
        -SEQ
      -DOC
    -STR