YAML Framework Matrix

Test #6SLA - Allowed characters in quoted mapping key

YAML

"foo\nbar:baz\tx \\$%^&*()x": 23
'x\ny:z\tx $%^&*()x': 24

Expected Events

+STR
+DOC
+MAP
=VAL "foo\nbar:baz\tx \\$%^&*()x
=VAL :23
=VAL 'x\\ny:z\\tx $%^&*()x
=VAL :24
-MAP
-DOC
-STR

Expected JSON

{
"foo\nbar:baz\tx \\$%^&*()x" : 23,
"x\\ny:z\\tx $%^&*()x" : 24
}

cpp-event

 ok

java-event

 ok

java-json

 json_ok

js-yaml-json

 json_ok

libyaml-event

 ok

luajit-json

 json_ok

nimyaml-event

 ok

perl5-pegex-event

 diff
Got Events:
+STR
+DOC
+MAP
=VAL "foo\nbar:baz\tx \\$%^&*()x
=VAL :23
=VAL 'x\ny:z\tx $%^&*()x
=VAL :24
-MAP
-DOC
-STR

perl5-pm-json

 json_ok

perl5-pm-pl

 n/a
{
  'foo
bar:baz	x \\$%^&*()x' => 23,
  'x\\ny:z\\tx $%^&*()x' => 24
}

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  'foo
bar:baz	x \\$%^&*()x' => 23,
  'x\\ny:z\\tx $%^&*()x' => 24
}

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
{
  'foo
bar:baz	x \\$%^&*()x' => 23,
  'x\\ny:z\\tx $%^&*()x' => 24
}

perl5-tiny-json

 json_diff
{
   "foo\nbar:baz\tx \\$%^&*()x" : "23",
   "x\\ny:z\\tx $%^&*()x" : "24"
}

perl5-tiny-pl

 n/a
{
  'foo
bar:baz	x \\$%^&*()x' => '23',
  'x\\ny:z\\tx $%^&*()x' => '24'
}

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  'foo
bar:baz	x \\$%^&*()x' => 23,
  'x\\ny:z\\tx $%^&*()x' => 24
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok