# YAML Test Matrix

--- &test-X8DW
  Title: Explicit key and value seperated by comment
  Tags: [ comment, explicit-key, mapping ]

YAML

---
? key
# comment
: value

Expected Events

+STR
+DOC ---
+MAP
=VAL :key
=VAL :value
-MAP
-DOC
-STR

Expected JSON

{
"key": "value"
}

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 =EOL |\x0a
   2    0    4    4 +MAP |
   2    0    4    4 +PAIR|
   2    0    4    4 =SYNX|?
   2    1    5    5 =WSPC|.
   2    2    6    6 +NODE|
   2    2    6    6 +VAL |
   2    2    6    6 =TEXT|key
   2    5    9    9 -VAL |
   2    5    9    9 -NODE|
   2    5    9    9 =EOL |\x0a
   3    0   10   10 +COMM|
   3    0   10   10 =SYNX|#
   3    1   11   11 =META|.comment
   3    9   19   19 -COMM|
   3    9   19   19 =EOL |\x0a
   4    0   20   20 =SYNX|:
   4    1   21   21 =WSPC|.
   4    2   22   22 +NODE|
   4    2   22   22 +VAL |
   4    2   22   22 =TEXT|value
   4    7   27   27 -VAL |
   4    7   27   27 -NODE|
   4    7   27   27 =EOL |\x0a
   5    0   28   28 -PAIR|
   5    0   28   28 -MAP |
   5    0   28   28 -NODE|
   5    0   28   28 -DOC |

perl-pp-perl

 na
{
  'key' => 'value'
}

perl-pplibyaml-perl

 na
{
  'key' => 'value'
}

perl-syck-perl

 na
{
  'key' => 'value'
}

perl-xs-perl

 na
{
  'key' => 'value'
}

perl-yaml-perl

 na
{
  'key' => 'value'
}

py-pyyaml-py

 na
{'key': 'value'}

py-ruamel-py

 na
{'key': 'value'}

perl-tiny-json

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

perl-tiny-perl

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