# YAML Test Matrix

--- &test-3ALJ
  Title: Block Sequence in Block Sequence
  Tags: [ sequence ]

YAML

- - s1_i1
  - s1_i2
- s2

Expected Events

+STR
+DOC
+SEQ
+SEQ
=VAL :s1_i1
=VAL :s1_i2
-SEQ
=VAL :s2
-SEQ
-DOC
-STR

Expected JSON

[
[
"s1_i1",
"s1_i2"
],
"s2"
]

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-syck-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

 error
YAML::Tiny found illegal characters in plain scalar: '- s1_i1' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny found illegal characters in plain scalar: '- s1_i1' at /yaml/bin/perl-tiny-perl line 15.

perl-pp-perl

 na
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl-pplibyaml-perl

 na
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl-syck-perl

 na
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl-xs-perl

 na
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

perl-yaml-perl

 na
[
  [
    's1_i1',
    's1_i2'
  ],
  's2'
]

py-pyyaml-py

 na
[['s1_i1', 's1_i2'], 's2']

py-ruamel-py

 na
[['s1_i1', 's1_i2'], 's2']