# YAML Test Matrix

--- &test-4WA9
  Title: Literal scalars
  Tags: [ indent, literal ]

YAML

- aaa: |2
    xxx
  bbb: |
    xxx

Expected Events

+STR
+DOC
+SEQ
+MAP
=VAL :aaa
=VAL |xxx\n
=VAL :bbb
=VAL |xxx\n
-MAP
-SEQ
-DOC
-STR

Expected JSON

[
{
"aaa": "xxx\n",
"bbb": "xxx\n"
}
]

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-tiny-json

 json_ok

perl-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +NODE|
   1    0    0    0 +SEQ |
   1    0    0    0 =SYNX|-
   1    1    1    1 =DENT|.
   1    2    2    2 +NODE|
   1    2    2    2 +MAP |
   1    2    2    2 +PAIR|
   1    2    2    2 +NODE|
   1    2    2    2 +VAL |
   1    2    2    2 =TEXT|aaa
   1    5    5    5 -VAL |
   1    5    5    5 -NODE|
   1    5    5    5 =SYNX|:
   1    6    6    6 +NODE|
   1    6    6    6 =WSPC|.
   1    7    7    7 +VAL |
   1    7    7    7 =SYNX||
   1    8    8    8 =SYNX|2
   1    9    9    9 =EOL |\x0a
   2    0   10   10 =DENT|....
   2    4   14   14 =TEXT|xxx
   2    7   17   17 =NEWL|\x0a
   3    0   18   18 -VAL |
   3    0   18   18 -NODE|
   3    0   18   18 -PAIR|
   3    0   18   18 =DENT|..
   3    2   20   20 +PAIR|
   3    2   20   20 +NODE|
   3    2   20   20 +VAL |
   3    2   20   20 =TEXT|bbb
   3    5   23   23 -VAL |
   3    5   23   23 -NODE|
   3    5   23   23 =SYNX|:
   3    6   24   24 +NODE|
   3    6   24   24 =WSPC|.
   3    7   25   25 +VAL |
   3    7   25   25 =SYNX||
   3    8   26   26 =EOL |\x0a
   4    0   27   27 =DENT|....
   4    4   31   31 =TEXT|xxx
   4    7   34   34 =NEWL|\x0a
   5    0   35   35 -VAL |
   5    0   35   35 -NODE|
   5    0   35   35 -PAIR|
   5    0   35   35 -MAP |
   5    0   35   35 -NODE|
   5    0   35   35 -SEQ |
   5    0   35   35 -NODE|
   5    0   35   35 -DOC |

perl-pp-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

perl-pplibyaml-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

perl-syck-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

perl-tiny-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

perl-xs-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

perl-yaml-perl

 na
[
  {
    'aaa' => 'xxx
',
    'bbb' => 'xxx
'
  }
]

py-pyyaml-py

 na
[{'aaa': 'xxx\n', 'bbb': 'xxx\n'}]

py-ruamel-py

 na
[{'aaa': 'xxx\n', 'bbb': 'xxx\n'}]