aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ext_depends/D-YAML/test/emit-block-scalar-in-simple-key-context-bug.yaml
blob: 53d8e58cc7fdf980142be9991e434bd5e36a0b42 (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
%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