# 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-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-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.

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 +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|one
   1    7    7    7 -VAL |
   1    7    7    7 -NODE|
   1    7    7    7 =SYNX|,
   1    8    8    8 =WSPC|.
   1    9    9    9 +NODE|
   1    9    9    9 +VAL |
   1    9    9    9 =TEXT|two
   1   12   12   12 -VAL |
   1   12   12   12 -NODE|
   1   12   12   12 =SYNX|,
   1   13   13   13 =WSPC|.
   1   14   14   14 =SYNX|]
   1   15   15   15 -SEQ |
   1   15   15   15 -NODE|
   1   15   15   15 =EOL |\x0a
   2    0   16   16 =SYNX|-
   2    1   17   17 =WSPC|.
   2    2   18   18 +NODE|
   2    2   18   18 +SEQ |
   2    2   18   18 =SYNX|[
   2    3   19   19 +NODE|
   2    3   19   19 +VAL |
   2    3   19   19 =TEXT|three
   2    8   24   24 -VAL |
   2    8   24   24 -NODE|
   2    8   24   24 =WSPC|.
   2    9   25   25 =SYNX|,
   2   10   26   26 +NODE|
   2   10   26   26 +VAL |
   2   10   26   26 =TEXT|four
   2   14   30   30 -VAL |
   2   14   30   30 -NODE|
   2   14   30   30 =SYNX|]
   2   15   31   31 -SEQ |
   2   15   31   31 -NODE|
   2   15   31   31 =EOL |\x0a
   3    0   32   32 -SEQ |
   3    0   32   32 -NODE|
   3    0   32   32 -DOC |

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