# YAML Test Matrix

--- &test-8QBE
  Title: Block Sequence in Block Mapping
  Tags: [ mapping, sequence ]

YAML

key:
 - item1
 - item2

Expected Events

+STR
+DOC
+MAP
=VAL :key
+SEQ
=VAL :item1
=VAL :item2
-SEQ
-MAP
-DOC
-STR

Expected JSON

{
"key": [
"item1",
"item2"
]
}

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 +MAP |
   1    0    0    0 +PAIR|
   1    0    0    0 +NODE|
   1    0    0    0 +VAL |
   1    0    0    0 =TEXT|key
   1    3    3    3 -VAL |
   1    3    3    3 -NODE|
   1    3    3    3 =SYNX|:
   1    4    4    4 +NODE|
   1    4    4    4 =EOL |\x0a
   2    0    5    5 +SEQ |
   2    0    5    5 =DENT|.
   2    1    6    6 =SYNX|-
   2    2    7    7 =WSPC|.
   2    3    8    8 +NODE|
   2    3    8    8 +VAL |
   2    3    8    8 =TEXT|item1
   2    8   13   13 -VAL |
   2    8   13   13 -NODE|
   2    8   13   13 =EOL |\x0a
   3    0   14   14 =DENT|.
   3    1   15   15 =SYNX|-
   3    2   16   16 =WSPC|.
   3    3   17   17 +NODE|
   3    3   17   17 +VAL |
   3    3   17   17 =TEXT|item2
   3    8   22   22 -VAL |
   3    8   22   22 -NODE|
   3    8   22   22 =EOL |\x0a
   4    0   23   23 -SEQ |
   4    0   23   23 -NODE|
   4    0   23   23 -PAIR|
   4    0   23   23 -MAP |
   4    0   23   23 -NODE|
   4    0   23   23 -DOC |

perl-pp-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

perl-pplibyaml-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

perl-syck-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

perl-tiny-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

perl-xs-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

perl-yaml-perl

 na
{
  'key' => [
             'item1',
             'item2'
           ]
}

py-pyyaml-py

 na
{'key': ['item1', 'item2']}

py-ruamel-py

 na
{'key': ['item1', 'item2']}