# YAML Test Matrix

--- &test-V55R
  Title: Aliases in Block Sequence
  Tags: [ alias, sequence ]

YAML

- &a a
- &b b
- *a
- *b

Expected Events

+STR
+DOC
+SEQ
=VAL &a :a
=VAL &b :b
=ALI *a
=ALI *b
-SEQ
-DOC
-STR

Expected JSON

[
"a",
"b",
"a",
"b"
]

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 +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 +PROP|
   1    2    2    2 +ANCH|
   1    2    2    2 =SYNX|&
   1    3    3    3 =META|a
   1    4    4    4 -ANCH|
   1    4    4    4 -PROP|
   1    4    4    4 =WSPC|.
   1    5    5    5 +VAL |
   1    5    5    5 =TEXT|a
   1    6    6    6 -VAL |
   1    6    6    6 -NODE|
   1    6    6    6 =EOL |\x0a
   2    0    7    7 =SYNX|-
   2    1    8    8 =WSPC|.
   2    2    9    9 +NODE|
   2    2    9    9 +PROP|
   2    2    9    9 +ANCH|
   2    2    9    9 =SYNX|&
   2    3   10   10 =META|b
   2    4   11   11 -ANCH|
   2    4   11   11 -PROP|
   2    4   11   11 =WSPC|.
   2    5   12   12 +VAL |
   2    5   12   12 =TEXT|b
   2    6   13   13 -VAL |
   2    6   13   13 -NODE|
   2    6   13   13 =EOL |\x0a
   3    0   14   14 =SYNX|-
   3    1   15   15 =WSPC|.
   3    2   16   16 +NODE|
   3    2   16   16 +ALI |
   3    2   16   16 =SYNX|*
   3    3   17   17 =META|a
   3    4   18   18 -ALI |
   3    4   18   18 -NODE|
   3    4   18   18 =EOL |\x0a
   4    0   19   19 =SYNX|-
   4    1   20   20 =WSPC|.
   4    2   21   21 +NODE|
   4    2   21   21 +ALI |
   4    2   21   21 =SYNX|*
   4    3   22   22 =META|b
   4    4   23   23 -ALI |
   4    4   23   23 -NODE|
   4    4   23   23 =EOL |\x0a
   5    0   24   24 -SEQ |
   5    0   24   24 -NODE|
   5    0   24   24 -DOC |

perl-pp-perl

 na
[
  'a',
  'b',
  'a',
  'b'
]

perl-pplibyaml-perl

 na
[
  'a',
  'b',
  'a',
  'b'
]

perl-syck-perl

 na
[
  'a',
  'b',
  'a',
  'b'
]

perl-xs-perl

 na
[
  'a',
  'b',
  ${\$VAR1->[0]},
  ${\$VAR1->[1]}
]

perl-yaml-perl

 na
[
  'a',
  'b',
  'a',
  'b'
]

py-pyyaml-py

 na
['a', 'b', 'a', 'b']

py-ruamel-py

 na
['a', 'b', 'a', 'b']

perl-tiny-json

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

perl-tiny-perl

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