# YAML Test Matrix

--- &test-MUS6:06
  Title: Directive variants
  Tags: [ directive ]

YAML

%YAMLL 1.1
---

Expected Events

+STR
+DOC ---
=VAL :
-DOC
-STR

Expected JSON

null

c-libfyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

java-snakeengine-event

 ok

java-snakeyaml-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

java-snakeengine-json

 json_ok

java-snakeyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

perl-pp-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

perl-syck-json

 json_diff
"%YAMLL 1.1 ---"

c-libyaml-event

 error
+STR
Parse error: found unknown directive name

go-yaml-json

 error
yaml: found unknown directive name

hs-hsyaml-event

 error
+STR
Parsing error near byte offset Pos {posByteOffset = 0, posCharOffset = 0, posLine = 1, posColumn = 0} (Parse failure near Indicator token)

hs-hsyaml-json

 error
hsyaml-parser: user error (Parse failure near Indicator token)

lua-lyaml-json

 error
luajit: 1:1: found unknown directive name
stack traceback:
	[C]: in function 'error'
	/usr/local/share/lua/5.1/lyaml/init.lua:306: in function 'error'
	/usr/local/share/lua/5.1/lyaml/init.lua:325: in function 'parse'
	/usr/local/share/lua/5.1/lyaml/init.lua:496: in function 'load'
	/yaml/bin/lua-lyaml-json:6: in main chunk
	[C]: at 0x555fd2ee1f97

perl-pplibyaml-json

 error
YAML::PP::LibYAML Error: The problem:

    found unknown directive name

was found at , line: 1, column: 7
while scanning a directive at line: 1, column: 1

perl-pplibyaml-perl

 error
YAML::PP::LibYAML Error: The problem:

    found unknown directive name

was found at , line: 1, column: 7
while scanning a directive at line: 1, column: 1

perl-tiny-json

 error
YAML::Tiny failed to classify line '%YAMLL 1.1' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny failed to classify line '%YAMLL 1.1' at /yaml/bin/perl-tiny-perl line 15.

perl-xs-json

 error
YAML::XS::Load Error: The problem:

    found unknown directive name

was found at document: 1, line: 1, column: 7
while scanning a directive at line: 1, column: 1

perl-xs-perl

 error
YAML::XS::Load Error: The problem:

    found unknown directive name

was found at document: 1, line: 1, column: 7
while scanning a directive at line: 1, column: 1

perl-yaml-json

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   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: 1
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

raku-yamlish-json

 error
Couldn't parse YAML
  in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
  in block <unit> at /yaml/bin/raku-yamlish-json line 6

raku-yamlish-raku

 error
Couldn't parse YAML
  in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
  in block <unit> at /yaml/bin/raku-yamlish-raku line 6

ruby-psych-json

 error
/ruby/gems/psych/lib/psych.rb:459:in `parse': (<unknown>): found unknown directive name while scanning a directive at line 1 column 1 (Psych::SyntaxError)
	from /ruby/gems/psych/lib/psych.rb:459:in `parse_stream'
	from /ruby/gems/psych/lib/psych.rb:565:in `load_stream'
	from /yaml/bin/ruby-psych-json:6:in `<main>'

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +DIR |
   1    0    0    0 =SYNX|%
   1    1    1    1 =META|YAML
   1    5    5    5 -DIR |
   1    5    5    5 =ERR |Expected.start.of.line
   1    5    5    5 =REST|L.1.1
   1   10   10   10 =REST|\x0a
   2    0   11   11 -DOC |
   2    0   11   11 +DOC |
   2    0   11   11 =HEAD|---
   2    3   14   14 +NODE|
   2    3   14   14 +VAL |
   2    3   14   14 -VAL |
   2    3   14   14 -NODE|
   2    3   14   14 =EOL |\x0a
   3    0   15   15 -DOC |

perl-pp-perl

 na
undef
Found reserved directive '%YAMLL 1.1' at /perl5/lib/perl5/YAML/PP/Lexer.pm line 851, <> line 1.

perl-syck-perl

 na
'%YAMLL 1.1 ---'

py-pyyaml-py

 na
None

py-ruamel-py

 na
None