diff options
Diffstat (limited to 'src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml')
-rw-r--r-- | src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml new file mode 100644 index 0000000..97c48e3 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-06.yaml @@ -0,0 +1,38 @@ +%YAML 1.1 +--- +- name: spec-05-06 + yaml: | + anchored: !local &anchor value + alias: *anchor + tree: | + +STR + +DOC + +MAP + =VAL :anchored + =VAL &anchor <!local> :value + =VAL :alias + =ALI *anchor + -MAP + -DOC + -STR +- name: spec-05-06-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "anchored" + : &A1 !local "value", + ? !!str "alias" + : *A1, + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "anchored + =VAL &A1 <!local> "value + =VAL <tag:yaml.org,2002:str> "alias + =ALI *A1 + -MAP + -DOC + -STR |