# YAML Test Matrix

--- &test-UKK6:01
  Title: Syntax character edge cases
  Tags: [ edge, empty-key ]

YAML

::

Expected Events

+STR
+DOC
+MAP
=VAL ::
=VAL :
-MAP
-DOC
-STR

Expected JSON

{
":": null
}

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-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

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

lua-lyaml-json

 json_diff
{
  ":": {}
}

cpp-rapidyaml-event

 error
-:1:1: ERROR: parse error
-:1:1: ::  (size=2)
       ^~  (cols 1-3)

perl-pp-event

 error
+STR
Line      : 1
Column    : 1
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML      : "::"
  at /yaml/bin/perl-pp-event line 46.

perl-pp-json

 error
Line      : 1
Column    : 1
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML      : "::"
  at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.

perl-pp-perl

 error
Line      : 1
Column    : 1
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 378
YAML      : "::"
  at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.

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|:
   1    1    1    1 -VAL |
   1    1    1    1 -NODE|
   1    1    1    1 =SYNX|:
   1    2    2    2 +NODE|
   1    2    2    2 +VAL |
   1    2    2    2 -VAL |
   1    2    2    2 -NODE|
   1    2    2    2 =EOL |\x0a
   2    0    3    3 -PAIR|
   2    0    3    3 -MAP |
   2    0    3    3 -NODE|
   2    0    3    3 -DOC |

perl-pplibyaml-perl

 na
{
  ':' => undef
}

perl-syck-perl

 na
{
  ':' => undef
}

perl-xs-perl

 na
{
  ':' => undef
}

perl-yaml-perl

 na
{
  ':' => undef
}

py-pyyaml-py

 na
{':': None}

py-ruamel-py

 na
{':': None}

perl-tiny-json

 ni
YAML::Tiny failed to classify line '::' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny failed to classify line '::' at /yaml/bin/perl-tiny-perl line 15.