# YAML Test Matrix

--- &test-DFF7
  Title: Spec Example 7.16. Flow Mapping Entries
  Tags: [ flow, mapping, spec ]

YAML

{
? explicit: entry,
implicit: entry,
?
}

Expected Events

+STR
+DOC
+MAP
=VAL :explicit
=VAL :entry
=VAL :implicit
=VAL :entry
=VAL :
=VAL :
-MAP
-DOC
-STR

Expected JSON



cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

js-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

perl5-pp-event

 diff
Got Events:
+STR
+DOC
+MAP
=VAL :explicit
=VAL :entry
=VAL :implicit
=VAL :entry
-MAP
-DOC
-STR

perl5-pegex-event

 error
Error parsing Pegex document:
  msg:      Parse document failed for some reason
  line:     4
  column:   0
  context:  ?\n}\n
             ^
  position: 39 (0 pre-lookahead)
 at /bin/perl5-pegex-event line 23.

perl5-pm-pl

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /lib/perl5/YAML/Loader.pm line 88.

perl5-syck-pl

 error
Syck parser (line 2, column 2): syntax error at /lib/perl5/x86_64-linux-gnu-thread-multi/YAML/Syck.pm line 75, <> line 1.

perl5-tiny-pl

 error
YAML::Tiny failed to classify line '{' at /bin/perl5-tiny-pl line 15.

hs-yaml-json

 na
{"":null,"explicit":"entry","implicit":"entry"}

java-json

 na
{
  "explicit": "entry",
  "implicit": "entry"
}

js-json

 na
{
  "explicit": "entry",
  "implicit": "entry",
  "": null
}

js-yaml-json

 na
{
  "explicit": "entry",
  "implicit": "entry",
  "null": null
}

luajit-json

 na
{"explicit":"entry","":"","implicit":"entry"}

perl5-pm-json

 na
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /lib/perl5/YAML/Loader.pm line 88.

perl5-pp-json

 na
{
   "explicit" : "entry",
   "implicit" : "entry"
}

perl5-pp-pl

 na
{
  'explicit' => 'entry',
  'implicit' => 'entry'
}

perl5-syck-json

 na
Syck parser (line 2, column 2): syntax error at /lib/perl5/x86_64-linux-gnu-thread-multi/YAML/Syck.pm line 75, <> line 1.

perl5-tiny-json

 na
YAML::Tiny failed to classify line '{' at /bin/perl5-tiny-json line 12.

perl5-xs-json

 na
{
   "" : null,
   "explicit" : "entry",
   "implicit" : "entry"
}
Use of uninitialized value in subroutine entry at /bin/perl5-xs-json line 14, <> line 1.

perl5-xs-pl

 na
{
  '' => undef,
  'explicit' => 'entry',
  'implicit' => 'entry'
}
Use of uninitialized value in subroutine entry at /bin/perl5-xs-pl line 16, <> line 1.

pyyaml-json

 na
{
  "null": null, 
  "explicit": "entry", 
  "implicit": "entry"
}

pyyaml-py

 na
{None: None, 'explicit': 'entry', 'implicit': 'entry'}

ruamel-json

 na
{
  "null": null, 
  "explicit": "entry", 
  "implicit": "entry"
}

ruamel-py

 na
{None: None, 'explicit': 'entry', 'implicit': 'entry'}

ruby-json

 na
{"explicit":"entry","implicit":"entry","":null}