# YAML Test Matrix

--- &test-K4SU
  Title: Multiple Entry Block Sequence
  Tags: [ sequence ]

YAML

- foo
- bar
- 42

Expected Events

+STR
+DOC
+SEQ
=VAL :foo
=VAL :bar
=VAL :42
-SEQ
-DOC
-STR

Expected JSON

[
"foo",
"bar",
42
]

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

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

dotnet-yamldotnet-json

 json_diff
[
  "foo",
  "bar",
  "42"
]

perl-tiny-json

 json_diff
[
  "foo",
  "bar",
  "42"
]

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 =WSPC|.
   1    2    2    2 +NODE|
   1    2    2    2 +VAL |
   1    2    2    2 =TEXT|foo
   1    5    5    5 -VAL |
   1    5    5    5 -NODE|
   1    5    5    5 =EOL |\x0a
   2    0    6    6 =SYNX|-
   2    1    7    7 =WSPC|.
   2    2    8    8 +NODE|
   2    2    8    8 +VAL |
   2    2    8    8 =TEXT|bar
   2    5   11   11 -VAL |
   2    5   11   11 -NODE|
   2    5   11   11 =EOL |\x0a
   3    0   12   12 =SYNX|-
   3    1   13   13 =WSPC|.
   3    2   14   14 +NODE|
   3    2   14   14 +VAL |
   3    2   14   14 =TEXT|42
   3    4   16   16 -VAL |
   3    4   16   16 -NODE|
   3    4   16   16 =EOL |\x0a
   4    0   17   17 -SEQ |
   4    0   17   17 -NODE|
   4    0   17   17 -DOC |

perl-pp-perl

 na
[
  'foo',
  'bar',
  42
]

perl-pplibyaml-perl

 na
[
  'foo',
  'bar',
  42
]

perl-syck-perl

 na
[
  'foo',
  'bar',
  42
]

perl-tiny-perl

 na
[
  'foo',
  'bar',
  '42'
]

perl-xs-perl

 na
[
  'foo',
  'bar',
  42
]

perl-yaml-perl

 na
[
  'foo',
  'bar',
  42
]

py-pyyaml-py

 na
['foo', 'bar', 42]

py-ruamel-py

 na
['foo', 'bar', 42]