diff options
Diffstat (limited to 'src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml')
-rw-r--r-- | src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml new file mode 100644 index 0000000..1e18cc6 --- /dev/null +++ b/src/ext_depends/D-YAML/test/spec 1.1/spec-05-04.yaml @@ -0,0 +1,59 @@ +%YAML 1.1 +--- +- name: spec-05-04 + yaml: | + sequence: [ one, two, ] + mapping: { sky: blue, sea: green } + tree: | + +STR + +DOC + +MAP + =VAL :sequence + +SEQ [] + =VAL :one + =VAL :two + -SEQ + =VAL :mapping + +MAP {} + =VAL :sky + =VAL :blue + =VAL :sea + =VAL :green + -MAP + -MAP + -DOC + -STR +- name: spec-05-04-canonical + yaml: | + %YAML 1.1 + --- + !!map { + ? !!str "sequence" + : !!seq [ + !!str "one", !!str "two" + ], + ? !!str "mapping" + : !!map { + ? !!str "sky" : !!str "blue", + ? !!str "sea" : !!str "green", + } + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sequence + +SEQ [] <tag:yaml.org,2002:seq> + =VAL <tag:yaml.org,2002:str> "one + =VAL <tag:yaml.org,2002:str> "two + -SEQ + =VAL <tag:yaml.org,2002:str> "mapping + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "sky + =VAL <tag:yaml.org,2002:str> "blue + =VAL <tag:yaml.org,2002:str> "sea + =VAL <tag:yaml.org,2002:str> "green + -MAP + -MAP + -DOC + -STR |