# 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"
}

cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

js-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pegex-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

java-json

 json_ok

js-json

 json_ok

js-yaml-json

 json_ok

luajit-json

 json_ok

perl5-pm-json

 json_ok

perl5-syck-json

 json_ok

perl5-tiny-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

perl5-pp-event

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

perl5-pp-json

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

perl5-pp-pl

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

perl5-pm-pl

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

perl5-syck-pl

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

perl5-tiny-pl

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

perl5-xs-pl

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

pyyaml-py

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

ruamel-py

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