# YAML Test Matrix

--- &test-2AUY
  Title: Tags in Block Sequence
  Tags: [ sequence, tag ]

YAML

 - !!str a
 - b
 - !!int 42
 - d

Expected Events

+STR
+DOC
+SEQ
=VAL <tag:yaml.org,2002:str> :a
=VAL :b
=VAL <tag:yaml.org,2002:int> :42
=VAL :d
-SEQ
-DOC
-STR

Expected JSON

[
"a",
"b",
42,
"d"
]

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 =DENT|.
   1    1    1    1 =SYNX|-
   1    2    2    2 =WSPC|.
   1    3    3    3 +NODE|
   1    3    3    3 +PROP|
   1    3    3    3 +TAG |
   1    3    3    3 +HAND|
   1    3    3    3 =SYNX|!
   1    4    4    4 =SYNX|!
   1    5    5    5 -HAND|
   1    5    5    5 =META|str
   1    8    8    8 -TAG |
   1    8    8    8 -PROP|
   1    8    8    8 =WSPC|.
   1    9    9    9 +VAL |
   1    9    9    9 =TEXT|a
   1   10   10   10 -VAL |
   1   10   10   10 -NODE|
   1   10   10   10 =EOL |\x0a
   2    0   11   11 =DENT|.
   2    1   12   12 =SYNX|-
   2    2   13   13 =WSPC|.
   2    3   14   14 +NODE|
   2    3   14   14 +VAL |
   2    3   14   14 =TEXT|b
   2    4   15   15 -VAL |
   2    4   15   15 -NODE|
   2    4   15   15 =EOL |\x0a
   3    0   16   16 =DENT|.
   3    1   17   17 =SYNX|-
   3    2   18   18 =WSPC|.
   3    3   19   19 +NODE|
   3    3   19   19 +PROP|
   3    3   19   19 +TAG |
   3    3   19   19 +HAND|
   3    3   19   19 =SYNX|!
   3    4   20   20 =SYNX|!
   3    5   21   21 -HAND|
   3    5   21   21 =META|int
   3    8   24   24 -TAG |
   3    8   24   24 -PROP|
   3    8   24   24 =WSPC|.
   3    9   25   25 +VAL |
   3    9   25   25 =TEXT|42
   3   11   27   27 -VAL |
   3   11   27   27 -NODE|
   3   11   27   27 =EOL |\x0a
   4    0   28   28 =DENT|.
   4    1   29   29 =SYNX|-
   4    2   30   30 =WSPC|.
   4    3   31   31 +NODE|
   4    3   31   31 +VAL |
   4    3   31   31 =TEXT|d
   4    4   32   32 -VAL |
   4    4   32   32 -NODE|
   4    4   32   32 =EOL |\x0a
   5    0   33   33 -SEQ |
   5    0   33   33 -NODE|
   5    0   33   33 -DOC |

perl-pp-perl

 na
[
  'a',
  'b',
  42,
  'd'
]

perl-pplibyaml-perl

 na
[
  'a',
  'b',
  42,
  'd'
]

perl-syck-perl

 na
[
  'a',
  'b',
  42,
  'd'
]

perl-xs-perl

 na
[
  'a',
  'b',
  42,
  'd'
]

perl-yaml-perl

 na
[
  'a',
  'b',
  42,
  'd'
]

py-pyyaml-py

 na
['a', 'b', 42, 'd']

py-ruamel-py

 na
['a', 'b', 42, 'd']

perl-tiny-json

 ni
YAML::Tiny found bad indenting in line ' - !!str a' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 ni
YAML::Tiny found bad indenting in line ' - !!str a' at /yaml/bin/perl-tiny-perl line 15.