# 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-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-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.

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +NODE|
   1    0    0    0 +SEQ |
   1    0    0    0 =SYNX|-
   1    1    1    1 =DENT|.
   1    2    2    2 +NODE|
   1    2    2    2 +SEQ |
   1    2    2    2 =SYNX|-
   1    3    3    3 =WSPC|.
   1    4    4    4 +NODE|
   1    4    4    4 +VAL |
   1    4    4    4 =TEXT|s1_i1
   1    9    9    9 -VAL |
   1    9    9    9 -NODE|
   1    9    9    9 =EOL |\x0a
   2    0   10   10 =DENT|..
   2    2   12   12 =SYNX|-
   2    3   13   13 =WSPC|.
   2    4   14   14 +NODE|
   2    4   14   14 +VAL |
   2    4   14   14 =TEXT|s1_i2
   2    9   19   19 -VAL |
   2    9   19   19 -NODE|
   2    9   19   19 =EOL |\x0a
   3    0   20   20 -SEQ |
   3    0   20   20 -NODE|
   3    0   20   20 =SYNX|-
   3    1   21   21 =WSPC|.
   3    2   22   22 +NODE|
   3    2   22   22 +VAL |
   3    2   22   22 =TEXT|s2
   3    4   24   24 -VAL |
   3    4   24   24 -NODE|
   3    4   24   24 =EOL |\x0a
   4    0   25   25 -SEQ |
   4    0   25   25 -NODE|
   4    0   25   25 -DOC |

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']