# 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"
]
]

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-yamlcpp-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

java-snakeyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-xs-json

 json_ok

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

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

perl-syck-json

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

perl-pp-perl

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

perl-pplibyaml-perl

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

perl-tiny-perl

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

perl-xs-perl

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

perl-yaml-perl

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

py-pyyaml-py

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

py-ruamel-py

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