# YAML Test Matrix

--- &test-TE2A
  Title: Spec Example 8.16. Block Mappings
  Tags: [ mapping, spec ]

YAML

block mapping:
 key: value

Expected Events

+STR
+DOC
+MAP
=VAL :block mapping
+MAP
=VAL :key
=VAL :value
-MAP
-MAP
-DOC
-STR

Expected JSON

{
"block mapping": {
"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-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|block.mapping
   1   13   13   13 -VAL |
   1   13   13   13 -NODE|
   1   13   13   13 =SYNX|:
   1   14   14   14 +NODE|
   1   14   14   14 =EOL |\x0a
   2    0   15   15 +MAP |
   2    0   15   15 =DENT|.
   2    1   16   16 +PAIR|
   2    1   16   16 +NODE|
   2    1   16   16 +VAL |
   2    1   16   16 =TEXT|key
   2    4   19   19 -VAL |
   2    4   19   19 -NODE|
   2    4   19   19 =SYNX|:
   2    5   20   20 =WSPC|.
   2    6   21   21 +NODE|
   2    6   21   21 +VAL |
   2    6   21   21 =TEXT|value
   2   11   26   26 -VAL |
   2   11   26   26 -NODE|
   2   11   26   26 =EOL |\x0a
   3    0   27   27 -PAIR|
   3    0   27   27 -MAP |
   3    0   27   27 -NODE|
   3    0   27   27 -PAIR|
   3    0   27   27 -MAP |
   3    0   27   27 -NODE|
   3    0   27   27 -DOC |

perl-pp-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

perl-pplibyaml-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

perl-syck-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

perl-tiny-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

perl-xs-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

perl-yaml-perl

 na
{
  'block mapping' => {
                       'key' => 'value'
                     }
}

py-pyyaml-py

 na
{'block mapping': {'key': 'value'}}

py-ruamel-py

 na
{'block mapping': {'key': 'value'}}