# YAML Test Matrix

--- &test-ZK9H
  Title: Nested top level flow mapping
  Tags: [ flow, indent, mapping, sequence ]

YAML

{ key: [[[
  value
 ]]]
}

Expected Events

+STR
+DOC
+MAP {}
=VAL :key
+SEQ []
+SEQ []
+SEQ []
=VAL :value
-SEQ
-SEQ
-SEQ
-MAP
-DOC
-STR

Expected JSON

{
"key": [
[
[
"value"
]
]
]
}

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

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-yaml-json

 error
YAML Error: Can't parse inline sequence
   Code: YAML_PARSE_ERR_INLINE_SEQUENCE
   Line: 1
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 551.

perl-yaml-perl

 error
YAML Error: Can't parse inline sequence
   Code: YAML_PARSE_ERR_INLINE_SEQUENCE
   Line: 1
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 551.

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 =SYNX|{
   1    1    1    1 =WSPC|.
   1    2    2    2 +PAIR|
   1    2    2    2 +NODE|
   1    2    2    2 +VAL |
   1    2    2    2 =TEXT|key
   1    5    5    5 -VAL |
   1    5    5    5 -NODE|
   1    5    5    5 =SYNX|:
   1    6    6    6 =WSPC|.
   1    7    7    7 +NODE|
   1    7    7    7 +SEQ |
   1    7    7    7 =SYNX|[
   1    8    8    8 +NODE|
   1    8    8    8 +SEQ |
   1    8    8    8 =SYNX|[
   1    9    9    9 +NODE|
   1    9    9    9 +SEQ |
   1    9    9    9 =SYNX|[
   1   10   10   10 =EOL |\x0a
   2    0   11   11 =WSPC|..
   2    2   13   13 +NODE|
   2    2   13   13 +VAL |
   2    2   13   13 =TEXT|value
   2    7   18   18 -VAL |
   2    7   18   18 -NODE|
   2    7   18   18 =EOL |\x0a
   3    0   19   19 =WSPC|.
   3    1   20   20 =SYNX|]
   3    2   21   21 -SEQ |
   3    2   21   21 -NODE|
   3    2   21   21 =SYNX|]
   3    3   22   22 -SEQ |
   3    3   22   22 -NODE|
   3    3   22   22 =SYNX|]
   3    4   23   23 -SEQ |
   3    4   23   23 -NODE|
   3    4   23   23 -PAIR|
   3    4   23   23 =EOL |\x0a
   4    0   24   24 =SYNX|}
   4    1   25   25 -MAP |
   4    1   25   25 -NODE|
   4    1   25   25 =EOL |\x0a
   5    0   26   26 -DOC |

perl-pp-perl

 na
{
  'key' => [
             [
               [
                 'value'
               ]
             ]
           ]
}

perl-pplibyaml-perl

 na
{
  'key' => [
             [
               [
                 'value'
               ]
             ]
           ]
}

perl-syck-perl

 na
{
  'key' => [
             [
               [
                 'value'
               ]
             ]
           ]
}

perl-xs-perl

 na
{
  'key' => [
             [
               [
                 'value'
               ]
             ]
           ]
}

py-pyyaml-py

 na
{'key': [[['value']]]}

py-ruamel-py

 na
{'key': [[['value']]]}

perl-tiny-json

 ni
YAML::Tiny found bad indenting in line '  value' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny found bad indenting in line '  value' at /yaml/bin/perl-tiny-perl line 15.