# YAML Test Matrix

--- &test-8UDB
  Title: Spec Example 7.14. Flow Sequence Entries
  Tags: [ flow, sequence, spec ]

YAML

[
"double
 quoted", 'single
           quoted',
plain
 text, [ nested ],
single: pair,
]

Expected Events

+STR
+DOC
+SEQ []
=VAL "double quoted
=VAL 'single quoted
=VAL :plain text
+SEQ []
=VAL :nested
-SEQ
+MAP {}
=VAL :single
=VAL :pair
-MAP
-SEQ
-DOC
-STR

Expected JSON

[
"double quoted",
"single quoted",
"plain text",
[
"nested"
],
{
"single": "pair"
}
]

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

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-syck-json

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

perl-yaml-json

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

perl-yaml-perl

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

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 =EOL |\x0a
   2    0    2    2 +NODE|
   2    0    2    2 +VAL |
   2    0    2    2 =SYNX|"
   2    1    3    3 =TEXT|double
   2    7    9    9 =FOLD|\x0a
   3    0   10   10 =WSPC|.
   3    1   11   11 =TEXT|quoted
   3    7   17   17 =SYNX|"
   3    8   18   18 -VAL |
   3    8   18   18 -NODE|
   3    8   18   18 =SYNX|,
   3    9   19   19 =WSPC|.
   3   10   20   20 +NODE|
   3   10   20   20 +VAL |
   3   10   20   20 =SYNX|'
   3   11   21   21 =TEXT|single
   3   17   27   27 =FOLD|\x0a
   4    0   28   28 =WSPC|...........
   4   11   39   39 =TEXT|quoted
   4   17   45   45 =SYNX|'
   4   18   46   46 -VAL |
   4   18   46   46 -NODE|
   4   18   46   46 =SYNX|,
   4   19   47   47 =EOL |\x0a
   5    0   48   48 +NODE|
   5    0   48   48 +VAL |
   5    0   48   48 =TEXT|plain
   5    5   53   53 =FOLD|\x0a
   6    0   54   54 =WSPC|.
   6    1   55   55 =TEXT|text
   6    5   59   59 -VAL |
   6    5   59   59 -NODE|
   6    5   59   59 =SYNX|,
   6    6   60   60 =WSPC|.
   6    7   61   61 +NODE|
   6    7   61   61 +SEQ |
   6    7   61   61 =SYNX|[
   6    8   62   62 =WSPC|.
   6    9   63   63 +NODE|
   6    9   63   63 +VAL |
   6    9   63   63 =TEXT|nested
   6   15   69   69 -VAL |
   6   15   69   69 -NODE|
   6   15   69   69 =WSPC|.
   6   16   70   70 =SYNX|]
   6   17   71   71 -SEQ |
   6   17   71   71 -NODE|
   6   17   71   71 =SYNX|,
   6   18   72   72 =EOL |\x0a
   7    0   73   73 +MAP |
   7    0   73   73 +PAIR|
   7    0   73   73 +NODE|
   7    0   73   73 +VAL |
   7    0   73   73 =TEXT|single
   7    6   79   79 -VAL |
   7    6   79   79 -NODE|
   7    6   79   79 =SYNX|:
   7    7   80   80 =WSPC|.
   7    8   81   81 +NODE|
   7    8   81   81 +VAL |
   7    8   81   81 =TEXT|pair
   7   12   85   85 -VAL |
   7   12   85   85 -NODE|
   7   12   85   85 -PAIR|
   7   12   85   85 -MAP |
   7   12   85   85 =SYNX|,
   7   13   86   86 =EOL |\x0a
   8    0   87   87 =SYNX|]
   8    1   88   88 -SEQ |
   8    1   88   88 -NODE|
   8    1   88   88 =EOL |\x0a
   9    0   89   89 -DOC |

perl-pp-perl

 na
[
  'double quoted',
  'single quoted',
  'plain text',
  [
    'nested'
  ],
  {
    'single' => 'pair'
  }
]

perl-pplibyaml-perl

 na
[
  'double quoted',
  'single quoted',
  'plain text',
  [
    'nested'
  ],
  {
    'single' => 'pair'
  }
]

perl-xs-perl

 na
[
  'double quoted',
  'single quoted',
  'plain text',
  [
    'nested'
  ],
  {
    'single' => 'pair'
  }
]

py-pyyaml-py

 na
['double quoted', 'single quoted', 'plain text', ['nested'], {'single': 'pair'}]

py-ruamel-py

 na
['double quoted', 'single quoted', 'plain text', ['nested'], {'single': 'pair'}]

perl-tiny-json

 ni
YAML::Tiny failed to classify line '[' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny failed to classify line '[' at /yaml/bin/perl-tiny-perl line 15.