# YAML Test Matrix

--- &test-5C5M
  Title: Spec Example 7.15. Flow Mappings
  Tags: [ flow, mapping, spec ]

YAML

- { one : two , three: four , }
- {five: six,seven : eight}

Expected Events

+STR
+DOC
+SEQ
+MAP
=VAL :one
=VAL :two
=VAL :three
=VAL :four
-MAP
+MAP
=VAL :five
=VAL :six
=VAL :seven
=VAL :eight
-MAP
-SEQ
-DOC
-STR

Expected JSON

[
{
"one": "two",
"three": "four"
},
{
"five": "six",
"seven": "eight"
}
]

cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

js-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pp-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-pp-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

perl5-syck-json

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

perl5-syck-pl

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

perl5-tiny-json

 error
YAML::Tiny found illegal characters in plain scalar: '{ one : two , three: four , }' at /bin/perl5-tiny-json line 12.

perl5-tiny-pl

 error
YAML::Tiny found illegal characters in plain scalar: '{ one : two , three: four , }' at /bin/perl5-tiny-pl line 15.

perl5-pm-pl

 na
[
  {
    'one' => 'two',
    'three' => 'four'
  },
  {
    'five' => 'six',
    'seven' => 'eight'
  }
]

perl5-pp-pl

 na
[
  {
    'one' => 'two',
    'three' => 'four'
  },
  {
    'five' => 'six',
    'seven' => 'eight'
  }
]

perl5-xs-pl

 na
[
  {
    'one' => 'two',
    'three' => 'four'
  },
  {
    'five' => 'six',
    'seven' => 'eight'
  }
]

pyyaml-py

 na
[{'one': 'two', 'three': 'four'}, {'five': 'six', 'seven': 'eight'}]

ruamel-py

 na
[{'one': 'two', 'three': 'four'}, {'five': 'six', 'seven': 'eight'}]