# 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-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

java-snakeyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-pplibyaml-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

c-libfyaml-json

 json_ok

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

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.

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'

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.