# YAML Test Matrix

--- &test-8CWC
  Title: Plain mapping key ending with colon
  Tags: [ mapping, scalar ]

YAML

---
key ends with two colons::: value

Expected Events

+STR
+DOC ---
+MAP
=VAL :key ends with two colons::
=VAL :value
-MAP
-DOC
-STR

Expected JSON

{
"key ends with two colons::": "value"
}

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

java-snakeyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pplibyaml-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

hs-hsyaml-json

 json_ok

java-snakeyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-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

perl-pp-event

 error
+STR
+DOC ---
Line      : 2
Column    : 25
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 366
YAML      : "::: value"
  at /yaml/bin/perl-pp-event line 25.

perl-pp-json

 error
Line      : 2
Column    : 25
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 366
YAML      : "::: value"
  at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.

perl-pp-perl

 error
Line      : 2
Column    : 25
Message   : Invalid plain scalar
Where     : /perl5/lib/perl5/YAML/PP/Lexer.pm line 366
YAML      : "::: value"
  at /perl5/lib/perl5/YAML/PP/Loader.pm line 94.

perl-pplibyaml-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-syck-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-tiny-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-xs-perl

 na
{
  'key ends with two colons::' => 'value'
}

perl-yaml-perl

 na
{
  'key ends with two colons::' => 'value'
}

py-pyyaml-py

 na
{'key ends with two colons::': 'value'}

py-ruamel-py

 na
{'key ends with two colons::': 'value'}