# YAML Test Matrix

--- &test-BU8L
  Title: Node Anchor and Tag on Seperate Lines
  Tags: [ 1.3-err, anchor, indent, tag ]

YAML

key: &anchor
 !!map
  a: b

Expected Events

+STR
+DOC
+MAP
=VAL :key
+MAP &anchor <tag:yaml.org,2002:map>
=VAL :a
=VAL :b
-MAP
-MAP
-DOC
-STR

Expected JSON

{
"key": {
"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

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

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

rust-yamlrust-event

 diff
Minimal Events:
+STR
+DOC
+MAP
=VAL :key
+MAP &1 <tag:yaml.org,2002:map>
=VAL :a
=VAL :b
-MAP
-MAP
-DOC
-STR
Transformed Events:
+STR
+DOC
+MAP
=VAL :key
+MAP &1
=VAL :a
=VAL :b
-MAP
-MAP
-DOC
-STR
Got Events:
+STR
+DOC
+MAP
=VAL :key
+MAP &1
=VAL :a
=VAL :b
-MAP
-MAP
-DOC
-STR

perl-yaml-json

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 2
   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: 2
   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 +MAP |
   1    0    0    0 +PAIR|
   1    0    0    0 +NODE|
   1    0    0    0 +VAL |
   1    0    0    0 =TEXT|key
   1    3    3    3 -VAL |
   1    3    3    3 -NODE|
   1    3    3    3 =SYNX|:
   1    4    4    4 +NODE|
   1    4    4    4 =WSPC|.
   1    5    5    5 +PROP|
   1    5    5    5 +ANCH|
   1    5    5    5 =SYNX|&
   1    6    6    6 =META|anchor
   1   12   12   12 -ANCH|
   1   12   12   12 =EOL |\x0a
   2    0   13   13 =DENT|.
   2    1   14   14 +TAG |
   2    1   14   14 +HAND|
   2    1   14   14 =SYNX|!
   2    2   15   15 =SYNX|!
   2    3   16   16 -HAND|
   2    3   16   16 =META|map
   2    6   19   19 -TAG |
   2    6   19   19 -PROP|
   2    6   19   19 =EOL |\x0a
   3    0   20   20 +MAP |
   3    0   20   20 =DENT|..
   3    2   22   22 +PAIR|
   3    2   22   22 +NODE|
   3    2   22   22 +VAL |
   3    2   22   22 =TEXT|a
   3    3   23   23 -VAL |
   3    3   23   23 -NODE|
   3    3   23   23 =SYNX|:
   3    4   24   24 =WSPC|.
   3    5   25   25 +NODE|
   3    5   25   25 +VAL |
   3    5   25   25 =TEXT|b
   3    6   26   26 -VAL |
   3    6   26   26 -NODE|
   3    6   26   26 =EOL |\x0a
   4    0   27   27 -PAIR|
   4    0   27   27 -MAP |
   4    0   27   27 -NODE|
   4    0   27   27 -PAIR|
   4    0   27   27 -MAP |
   4    0   27   27 -NODE|
   4    0   27   27 -DOC |

perl-pp-perl

 na
{
  'key' => {
             'a' => 'b'
           }
}

perl-pplibyaml-perl

 na
{
  'key' => {
             'a' => 'b'
           }
}

perl-syck-perl

 na
{
  'key' => {
             'a' => 'b'
           }
}

perl-xs-perl

 na
{
  'key' => {
             'a' => 'b'
           }
}

py-pyyaml-py

 na
{'key': {'a': 'b'}}

py-ruamel-py

 na
{'key': {'a': 'b'}}

perl-tiny-json

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

perl-tiny-perl

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