# YAML Test Matrix

--- &test-9BXH
  Title: Multiline doublequoted flow mapping key without value
  Tags: [ double, flow, mapping ]

YAML

---
- { "single line", a: b}
- { "multi
  line", a: b}

Expected Events

+STR
+DOC ---
+SEQ
+MAP
=VAL "single line
=VAL :
=VAL :a
=VAL :b
-MAP
+MAP
=VAL "multi line
=VAL :
=VAL :a
=VAL :b
-MAP
-SEQ
-DOC
-STR

Expected JSON

[
{
"single line": null,
"a": "b"
},
{
"multi line": null,
"a": "b"
}
]

hs-yaml-event

 ok

java-event

 ok

js-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pp-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

js-json

 json_ok

js-yaml-json

 json_ok

perl5-pp-json

 json_ok

perl5-syck-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

java-json

 json_diff
[
  {
    "a": "b"
  },
  {
    "a": "b"
  }
]

luajit-json

 json_diff
[
  {
    "a": "b",
    "single line": ""
  },
  {
    "a": "b",
    "multi line": ""
  }
]

cpp-event

 error
+STR
+DOC
+SEQ
+MAP {}
=VAL :single line
=VAL :
=VAL :a
=VAL :b
-MAP
+MAP {}
=VAL :
=VAL :
terminate called after throwing an instance of 'YAML::ParserException'
  what():  yaml-cpp: error at line 3, column 5: end of map flow not found
timeout: the monitored command dumped core

perl5-pegex-event

 error
Maximum parsing rules reached (1000)

perl5-pm-json

 error
YAML Error: Can't parse inline map
   Code: YAML_PARSE_ERR_INLINE_MAP
   Line: 3
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 522.

perl5-pm-pl

 error
YAML Error: Can't parse inline map
   Code: YAML_PARSE_ERR_INLINE_MAP
   Line: 3
   Document: 1
 at /lib/perl5/YAML/Loader.pm line 522.

perl5-tiny-json

 error
YAML::Tiny found illegal characters in plain scalar: '{ "single line", a: b}' at /bin/perl5-tiny-json line 12.

perl5-tiny-pl

 error
YAML::Tiny found illegal characters in plain scalar: '{ "single line", a: b}' at /bin/perl5-tiny-pl line 15.

perl5-pp-pl

 na
[
  {
    'a' => 'b',
    'single line' => undef
  },
  {
    'a' => 'b',
    'multi line' => undef
  }
]

perl5-syck-pl

 na
[
  {
    'a' => 'b',
    'single line' => undef
  },
  {
    'a' => 'b',
    'multi line' => undef
  }
]

perl5-xs-pl

 na
[
  {
    'a' => 'b',
    'single line' => undef
  },
  {
    'a' => 'b',
    'multi line' => undef
  }
]

pyyaml-py

 na
[{'a': 'b', 'single line': None}, {'a': 'b', 'multi line': None}]

ruamel-py

 na
[{'a': 'b', 'single line': None}, {'a': 'b', 'multi line': None}]