# YAML Test Matrix

--- &test-RLU9
  Title: Sequence Indent
  Tags: [ indent, sequence ]

YAML

foo:
- 42
bar:
  - 44

Expected Events

+STR
+DOC
+MAP
=VAL :foo
+SEQ
=VAL :42
-SEQ
=VAL :bar
+SEQ
=VAL :44
-SEQ
-MAP
-DOC
-STR

Expected JSON

{
"bar": [
44
],
"foo": [
42
]
}

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
{
  "bar": [
    "44"
  ],
  "foo": [
    "42"
  ]
}

perl-tiny-json

 json_diff
{
  "bar": [
    "44"
  ],
  "foo": [
    "42"
  ]
}

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|foo
   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|42
   2    4    9    9 -VAL |
   2    4    9    9 -NODE|
   2    4    9    9 =EOL |\x0a
   3    0   10   10 -SEQ |
   3    0   10   10 -NODE|
   3    0   10   10 -PAIR|
   3    0   10   10 +PAIR|
   3    0   10   10 +NODE|
   3    0   10   10 +VAL |
   3    0   10   10 =TEXT|bar
   3    3   13   13 -VAL |
   3    3   13   13 -NODE|
   3    3   13   13 =SYNX|:
   3    4   14   14 +NODE|
   3    4   14   14 =EOL |\x0a
   4    0   15   15 +SEQ |
   4    0   15   15 =DENT|..
   4    2   17   17 =SYNX|-
   4    3   18   18 =WSPC|.
   4    4   19   19 +NODE|
   4    4   19   19 +VAL |
   4    4   19   19 =TEXT|44
   4    6   21   21 -VAL |
   4    6   21   21 -NODE|
   4    6   21   21 =EOL |\x0a
   5    0   22   22 -SEQ |
   5    0   22   22 -NODE|
   5    0   22   22 -PAIR|
   5    0   22   22 -MAP |
   5    0   22   22 -NODE|
   5    0   22   22 -DOC |

perl-pp-perl

 na
{
  'bar' => [
             44
           ],
  'foo' => [
             42
           ]
}

perl-pplibyaml-perl

 na
{
  'bar' => [
             44
           ],
  'foo' => [
             42
           ]
}

perl-syck-perl

 na
{
  'bar' => [
             44
           ],
  'foo' => [
             42
           ]
}

perl-tiny-perl

 na
{
  'bar' => [
             '44'
           ],
  'foo' => [
             '42'
           ]
}

perl-xs-perl

 na
{
  'bar' => [
             44
           ],
  'foo' => [
             42
           ]
}

perl-yaml-perl

 na
{
  'bar' => [
             44
           ],
  'foo' => [
             42
           ]
}

py-pyyaml-py

 na
{'bar': [44], 'foo': [42]}

py-ruamel-py

 na
{'bar': [44], 'foo': [42]}