# YAML Test Matrix

--- &test-8KB6
  Title: Multiline plain flow mapping key without value
  Tags: [ 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

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

c-libfyaml-event

 ok

c-libyaml-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

java-snakeyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-pplibyaml-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

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-xs-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

java-snakeyaml-json

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

lua-lyaml-json

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

cpp-yamlcpp-event

 error
+STR
+DOC
+SEQ
+MAP
=VAL :single line
=VAL :
=VAL :a
=VAL :b
-MAP
+MAP
=VAL :
=VAL :
Exception:
yaml-cpp: error at line 3, column 5: end of map flow not found

perl-syck-json

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

perl-syck-perl

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

perl-yaml-json

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

perl-yaml-perl

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

perl-pp-perl

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

perl-pplibyaml-perl

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

perl-xs-perl

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

py-pyyaml-py

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

py-ruamel-py

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

perl-tiny-json

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

perl-tiny-perl

 ni
YAML::Tiny found illegal characters in plain scalar: '{ single line, a: b}' at /yaml/bin/perl-tiny-perl line 15.