# YAML Test Matrix

--- &test-J7VC
  Title: Empty Lines Between Mapping Elements
  Tags: [ mapping, whitespace ]

YAML

one: 2


three: 4

Expected Events

+STR
+DOC
+MAP
=VAL :one
=VAL :2
=VAL :three
=VAL :4
-MAP
-DOC
-STR

Expected JSON

{
"one": 2,
"three": 4
}

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
{
  "one": "2",
  "three": "4"
}

perl-tiny-json

 json_diff
{
  "one": "2",
  "three": "4"
}

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 =WSPC|.
   1    5    5    5 +NODE|
   1    5    5    5 +VAL |
   1    5    5    5 =TEXT|2
   1    6    6    6 -VAL |
   1    6    6    6 -NODE|
   1    6    6    6 =EOL |\x0a
   2    0    7    7 =EOL |\x0a
   3    0    8    8 =EOL |\x0a
   4    0    9    9 -PAIR|
   4    0    9    9 +PAIR|
   4    0    9    9 +NODE|
   4    0    9    9 +VAL |
   4    0    9    9 =TEXT|three
   4    5   14   14 -VAL |
   4    5   14   14 -NODE|
   4    5   14   14 =SYNX|:
   4    6   15   15 =WSPC|.
   4    7   16   16 +NODE|
   4    7   16   16 +VAL |
   4    7   16   16 =TEXT|4
   4    8   17   17 -VAL |
   4    8   17   17 -NODE|
   4    8   17   17 =EOL |\x0a
   5    0   18   18 -PAIR|
   5    0   18   18 -MAP |
   5    0   18   18 -NODE|
   5    0   18   18 -DOC |

perl-pp-perl

 na
{
  'one' => 2,
  'three' => 4
}

perl-pplibyaml-perl

 na
{
  'one' => 2,
  'three' => 4
}

perl-syck-perl

 na
{
  'one' => 2,
  'three' => 4
}

perl-tiny-perl

 na
{
  'one' => '2',
  'three' => '4'
}

perl-xs-perl

 na
{
  'one' => 2,
  'three' => 4
}

perl-yaml-perl

 na
{
  'one' => 2,
  'three' => 4
}

py-pyyaml-py

 na
{'one': 2, 'three': 4}

py-ruamel-py

 na
{'one': 2, 'three': 4}