# YAML Test Matrix

--- &test-KSS4
  Title: Scalars on --- line
  Tags: [ 1.3-err, anchor, header, scalar ]

YAML

--- "quoted
string"
--- &node foo

Expected Events

+STR
+DOC ---
=VAL "quoted string
-DOC
+DOC ---
=VAL &node :foo
-DOC
-STR

Expected JSON

"quoted string"
"foo"

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-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

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

java-snakeengine-json

 json_ok

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

raku-yamlish-json

 json_ok

ruby-psych-json

 json_ok

dotnet-yamldotnet-json

 error
Unhandled exception. YamlDotNet.Core.YamlException: (Line: 3, Col: 1, Idx: 20) - (Line: 3, Col: 4, Idx: 23): Expected 'StreamEnd', got 'DocumentStart' (at Line: 3, Col: 1, Idx: 20).
   at YamlDotNet.Core.ParserExtensions.Require[T](IParser parser)
   at YamlDotNet.Core.ParserExtensions.Consume[T](IParser parser)
   at YamlDotNet.Serialization.Deserializer.Deserialize(IParser parser, Type type)
   at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input, Type type)
   at YamlDotNet.Serialization.Deserializer.Deserialize(TextReader input)
   at Program.Main(String[] commandLineArguments)
Aborted (core dumped)

perl-yaml-json

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 804.

perl-yaml-perl

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 804.

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 =WSPC|.
   1    4    4    4 +NODE|
   1    4    4    4 +VAL |
   1    4    4    4 =SYNX|"
   1    5    5    5 =TEXT|quoted
   1   11   11   11 =FOLD|\x0a
   2    0   12   12 =TEXT|string
   2    6   18   18 =SYNX|"
   2    7   19   19 -VAL |
   2    7   19   19 -NODE|
   2    7   19   19 =EOL |\x0a
   3    0   20   20 -DOC |
   3    0   20   20 +DOC |
   3    0   20   20 =HEAD|---
   3    3   23   23 =WSPC|.
   3    4   24   24 +NODE|
   3    4   24   24 +PROP|
   3    4   24   24 +ANCH|
   3    4   24   24 =SYNX|&
   3    5   25   25 =META|node
   3    9   29   29 -ANCH|
   3    9   29   29 -PROP|
   3    9   29   29 =WSPC|.
   3   10   30   30 +VAL |
   3   10   30   30 =TEXT|foo
   3   13   33   33 -VAL |
   3   13   33   33 -NODE|
   3   13   33   33 =EOL |\x0a
   4    0   34   34 -DOC |

perl-pp-perl

 na
'quoted string'
'foo'

perl-pplibyaml-perl

 na
'quoted string'
'foo'

perl-syck-perl

 na
'quoted string'
'foo'

perl-xs-perl

 na
'quoted string'
'foo'

py-pyyaml-py

 na
'quoted string'
'foo'

py-ruamel-py

 na
'quoted string'
'foo'

raku-yamlish-raku

 na
"quoted string".Str
"foo".Str

perl-tiny-json

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

perl-tiny-perl

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