# YAML Test Matrix

--- &test-AZ63
  Title: Sequence With Same Indentation as Parent Mapping
  Tags: [ indent, mapping, sequence ]

YAML

one:
- 2
- 3
four: 5

Expected Events

+STR
+DOC
+MAP
=VAL :one
+SEQ
=VAL :2
=VAL :3
-SEQ
=VAL :four
=VAL :5
-MAP
-DOC
-STR

Expected JSON

{
"four": 5,
"one": [
2,
3
]
}

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

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-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

dotnet-yamldotnet-json

 json_diff
{
  "four": "5",
  "one": [
    "2",
    "3"
  ]
}

perl-tiny-json

 json_diff
{
  "four": "5",
  "one": [
    "2",
    "3"
  ]
}

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|one
   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 =SYNX|-
   2    1    6    6 =WSPC|.
   2    2    7    7 +NODE|
   2    2    7    7 +VAL |
   2    2    7    7 =TEXT|2
   2    3    8    8 -VAL |
   2    3    8    8 -NODE|
   2    3    8    8 =EOL |\x0a
   3    0    9    9 =SYNX|-
   3    1   10   10 =WSPC|.
   3    2   11   11 +NODE|
   3    2   11   11 +VAL |
   3    2   11   11 =TEXT|3
   3    3   12   12 -VAL |
   3    3   12   12 -NODE|
   3    3   12   12 =EOL |\x0a
   4    0   13   13 -SEQ |
   4    0   13   13 -NODE|
   4    0   13   13 -PAIR|
   4    0   13   13 +PAIR|
   4    0   13   13 +NODE|
   4    0   13   13 +VAL |
   4    0   13   13 =TEXT|four
   4    4   17   17 -VAL |
   4    4   17   17 -NODE|
   4    4   17   17 =SYNX|:
   4    5   18   18 =WSPC|.
   4    6   19   19 +NODE|
   4    6   19   19 +VAL |
   4    6   19   19 =TEXT|5
   4    7   20   20 -VAL |
   4    7   20   20 -NODE|
   4    7   20   20 =EOL |\x0a
   5    0   21   21 -PAIR|
   5    0   21   21 -MAP |
   5    0   21   21 -NODE|
   5    0   21   21 -DOC |

perl-pp-perl

 na
{
  'four' => 5,
  'one' => [
             2,
             3
           ]
}

perl-pplibyaml-perl

 na
{
  'four' => 5,
  'one' => [
             2,
             3
           ]
}

perl-syck-perl

 na
{
  'four' => 5,
  'one' => [
             2,
             3
           ]
}

perl-tiny-perl

 na
{
  'four' => '5',
  'one' => [
             '2',
             '3'
           ]
}

perl-xs-perl

 na
{
  'four' => 5,
  'one' => [
             2,
             3
           ]
}

perl-yaml-perl

 na
{
  'four' => 5,
  'one' => [
             2,
             3
           ]
}

py-pyyaml-py

 na
{'four': 5, 'one': [2, 3]}

py-ruamel-py

 na
{'four': 5, 'one': [2, 3]}