# YAML Test Matrix

--- &test-FTA2
  Title: Single block sequence with anchor and explicit document start
  Tags: [ anchor, header, sequence ]

YAML

--- &sequence
- a

Expected Events

+STR
+DOC ---
+SEQ &sequence
=VAL :a
-SEQ
-DOC
-STR

Expected JSON

[
"a"
]

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

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 +NODE|
   1    3    3    3 =WSPC|.
   1    4    4    4 +PROP|
   1    4    4    4 +ANCH|
   1    4    4    4 =SYNX|&
   1    5    5    5 =META|sequence
   1   13   13   13 -ANCH|
   1   13   13   13 -PROP|
   1   13   13   13 =EOL |\x0a
   2    0   14   14 +SEQ |
   2    0   14   14 =SYNX|-
   2    1   15   15 =WSPC|.
   2    2   16   16 +NODE|
   2    2   16   16 +VAL |
   2    2   16   16 =TEXT|a
   2    3   17   17 -VAL |
   2    3   17   17 -NODE|
   2    3   17   17 =EOL |\x0a
   3    0   18   18 -SEQ |
   3    0   18   18 -NODE|
   3    0   18   18 -DOC |

perl-pp-perl

 na
[
  'a'
]

perl-pplibyaml-perl

 na
[
  'a'
]

perl-syck-perl

 na
[
  'a'
]

perl-xs-perl

 na
[
  'a'
]

perl-yaml-perl

 na
[
  'a'
]

py-pyyaml-py

 na
['a']

py-ruamel-py

 na
['a']

perl-tiny-json

 ni
YAML::Tiny does not support a feature in line '&sequence' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny does not support a feature in line '&sequence' at /yaml/bin/perl-tiny-perl line 15.