# YAML Test Matrix

--- &test-9YRD
  Title: Multiline Scalar at Top Level
  Tags: [ 1.3-err, scalar, whitespace ]

YAML

a
b  
  c
d

e

Expected Events

+STR
+DOC
=VAL :a b c d\ne
-DOC
-STR

Expected JSON

"a b c d\ne"

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

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

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

perl-tiny-perl

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

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.

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +NODE|
   1    0    0    0 +VAL |
   1    0    0    0 =TEXT|a
   1    1    1    1 =FOLD|\x0a
   2    0    2    2 =TEXT|b
   2    1    3    3 =WSPC|..
   2    3    5    5 =FOLD|\x0a
   3    0    6    6 =WSPC|..
   3    2    8    8 =TEXT|c
   3    3    9    9 =FOLD|\x0a
   4    0   10   10 =TEXT|d
   4    1   11   11 =EOL |\x0a
   5    0   12   12 =NEWL|\x0a
   6    0   13   13 =TEXT|e
   6    1   14   14 -VAL |
   6    1   14   14 -NODE|
   6    1   14   14 =EOL |\x0a
   7    0   15   15 -DOC |

perl-pp-perl

 na
'a b c d
e'

perl-pplibyaml-perl

 na
'a b c d
e'

perl-syck-perl

 na
'a b c d
e'

perl-xs-perl

 na
'a b c d
e'

py-pyyaml-py

 na
'a b c d\ne'

py-ruamel-py

 na
'a b c d\ne'