diff options
Diffstat (limited to 'src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml')
-rw-r--r-- | src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml b/src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml new file mode 100644 index 0000000..53d8e58 --- /dev/null +++ b/src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml @@ -0,0 +1,34 @@ +%YAML 1.1 +--- +- name: emit-block-scalar-in-simple-key-context-bug + yaml: | + ? |- + foo + : |- + bar + tree: | + +STR + +DOC + +MAP + =VAL |foo + =VAL |bar + -MAP + -DOC + -STR +- name: emit-block-scalar-in-simple-key-context-bug-canonical + yaml: | + %YAML 1.1 + --- !!map + { + ? !!str "foo" + : !!str "bar" + } + tree: | + +STR + +DOC --- + +MAP {} <tag:yaml.org,2002:map> + =VAL <tag:yaml.org,2002:str> "foo + =VAL <tag:yaml.org,2002:str> "bar + -MAP + -DOC + -STR |