# YAML Test Matrix

--- &test-J5UC
  Title: Multiple Pair Block Mapping
  Tags: [ mapping ]

YAML

foo: blue
bar: arrr
baz: jazz

Expected Events

+STR
+DOC
+MAP
=VAL :foo
=VAL :blue
=VAL :bar
=VAL :arrr
=VAL :baz
=VAL :jazz
-MAP
-DOC
-STR

Expected JSON

{
"bar": "arrr",
"baz": "jazz",
"foo": "blue"
}

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|foo
   1    3    3    3 -VAL |
   1    3    3    3 -NODE|
   1    3    3    3 =SYNX|:
   1    4    4    4 =WSPC|.
   1    5    5    5 +NODE|
   1    5    5    5 +VAL |
   1    5    5    5 =TEXT|blue
   1    9    9    9 -VAL |
   1    9    9    9 -NODE|
   1    9    9    9 =EOL |\x0a
   2    0   10   10 -PAIR|
   2    0   10   10 +PAIR|
   2    0   10   10 +NODE|
   2    0   10   10 +VAL |
   2    0   10   10 =TEXT|bar
   2    3   13   13 -VAL |
   2    3   13   13 -NODE|
   2    3   13   13 =SYNX|:
   2    4   14   14 =WSPC|.
   2    5   15   15 +NODE|
   2    5   15   15 +VAL |
   2    5   15   15 =TEXT|arrr
   2    9   19   19 -VAL |
   2    9   19   19 -NODE|
   2    9   19   19 =EOL |\x0a
   3    0   20   20 -PAIR|
   3    0   20   20 +PAIR|
   3    0   20   20 +NODE|
   3    0   20   20 +VAL |
   3    0   20   20 =TEXT|baz
   3    3   23   23 -VAL |
   3    3   23   23 -NODE|
   3    3   23   23 =SYNX|:
   3    4   24   24 =WSPC|.
   3    5   25   25 +NODE|
   3    5   25   25 +VAL |
   3    5   25   25 =TEXT|jazz
   3    9   29   29 -VAL |
   3    9   29   29 -NODE|
   3    9   29   29 =EOL |\x0a
   4    0   30   30 -PAIR|
   4    0   30   30 -MAP |
   4    0   30   30 -NODE|
   4    0   30   30 -DOC |

perl-pp-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

perl-pplibyaml-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

perl-syck-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

perl-tiny-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

perl-xs-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

perl-yaml-perl

 na
{
  'bar' => 'arrr',
  'baz' => 'jazz',
  'foo' => 'blue'
}

py-pyyaml-py

 na
{'bar': 'arrr', 'baz': 'jazz', 'foo': 'blue'}

py-ruamel-py

 na
{'bar': 'arrr', 'baz': 'jazz', 'foo': 'blue'}