# YAML Test Matrix

--- &test-6XDY
  Title: Two document start markers
  Tags: [ header ]

YAML

---
---

Expected Events

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

Expected JSON

null
null

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

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-tiny-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

lua-lyaml-json

 json_diff
{}
{}

dotnet-yamldotnet-json

 error
Unhandled exception. YamlDotNet.Core.YamlException: (Line: 2, Col: 1, Idx: 4) - (Line: 2, Col: 4, Idx: 7): Expected 'StreamEnd', got 'DocumentStart' (at Line: 2, Col: 1, Idx: 4).
   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)

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 +VAL |
   1    3    3    3 -VAL |
   1    3    3    3 -NODE|
   1    3    3    3 =EOL |\x0a
   2    0    4    4 -DOC |
   2    0    4    4 +DOC |
   2    0    4    4 =HEAD|---
   2    3    7    7 +NODE|
   2    3    7    7 +VAL |
   2    3    7    7 -VAL |
   2    3    7    7 -NODE|
   2    3    7    7 =EOL |\x0a
   3    0    8    8 -DOC |

perl-pp-perl

 na
undef
undef

perl-pplibyaml-perl

 na
undef
undef

perl-syck-perl

 na
undef
undef

perl-tiny-perl

 na
undef
undef

perl-xs-perl

 na
undef
undef

perl-yaml-perl

 na
undef
undef

py-pyyaml-py

 na
None
None

py-ruamel-py

 na
None
None