# YAML Test Matrix

--- &test-5KJE
  Title: Spec Example 7.13. Flow Sequence
  Tags: [ flow, sequence, spec ]

YAML

- [ one, two, ]
- [three ,four]

Expected Events

+STR
+DOC
+SEQ
+SEQ
=VAL :one
=VAL :two
-SEQ
+SEQ
=VAL :three
=VAL :four
-SEQ
-SEQ
-DOC
-STR

Expected JSON

[
[
"one",
"two"
],
[
"three",
"four"
]
]

cpp-event

 ok

hs-yaml-event

 ok

java-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-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-tiny-json

 json_diff
[
  "[ one, two, ]",
  "[three ,four]"
]

perl5-syck-json

 error
Syck parser (line 1, column 15): 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 15): syntax error at /lib/perl5/x86_64-linux-gnu-thread-multi/YAML/Syck.pm line 75, <> line 1.

perl5-pm-pl

 na
[
  [
    'one',
    'two'
  ],
  [
    'three',
    'four'
  ]
]

perl5-pp-pl

 na
[
  [
    'one',
    'two'
  ],
  [
    'three',
    'four'
  ]
]

perl5-tiny-pl

 na
[
  '[ one, two, ]',
  '[three ,four]'
]

perl5-xs-pl

 na
[
  [
    'one',
    'two'
  ],
  [
    'three',
    'four'
  ]
]

pyyaml-py

 na
[['one', 'two'], ['three', 'four']]

ruamel-py

 na
[['one', 'two'], ['three', 'four']]