# YAML Test Matrix

--- &test-6FWR
  Title: Block Scalar Keep
  Tags: [ literal, scalar, whitespace ]

YAML

--- |+
 ab
 
  
...

Expected Events

+STR
+DOC ---
=VAL |ab\n\n \n
-DOC ...
-STR

Expected JSON

"ab\n\n \n"

c-libfyaml-event

 ok

c-libyaml-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-xs-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

cpp-rapidyaml-event

 diff
Minimal Events:
+STR
+DOC ---
=VAL :ab\n\n \n
-DOC ...
-STR
Transformed Events:
+STR
+DOC ---
=VAL :ab\n\n \n
-DOC
-STR
Got Events:
+STR
+DOC ---
=VAL 'ab\n\n \n
-DOC
-STR

perl-tiny-json

 json_diff
"ab\n"
null

perl-syck-json

 error
Syck parser (line 5, column 0): syntax error at /perl5/lib/perl5/x86_64-linux-thread-multi/YAML/Syck.pm line 60, <> line 1.

perl-syck-perl

 error
Syck parser (line 5, column 0): syntax error at /perl5/lib/perl5/x86_64-linux-thread-multi/YAML/Syck.pm line 60, <> line 1.

perl-yaml-json

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 5
   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: 5
   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 +NODE|
   1    3    3    3 =WSPC|.
   1    4    4    4 +VAL |
   1    4    4    4 =SYNX||
   1    5    5    5 =SYNX|+
   1    6    6    6 =EOL |\x0a
   2    0    7    7 =DENT|.
   2    1    8    8 =TEXT|ab
   2    3   10   10 =NEWL|\x0a
   3    0   11   11 =DENT|.
   3    1   12   12 =NEWL|\x0a
   4    0   13   13 =DENT|.
   4    1   14   14 =TEXT|.
   4    2   15   15 =NEWL|\x0a
   5    0   16   16 -VAL |
   5    0   16   16 -NODE|
   5    0   16   16 -DOC |
   5    0   16   16 =FOOT|...
   5    3   19   19 =EOL |\x0a

perl-pp-perl

 na
'ab

 
'

perl-pplibyaml-perl

 na
'ab

 
'

perl-tiny-perl

 na
'ab
'
undef

perl-xs-perl

 na
'ab

 
'

py-pyyaml-py

 na
'ab\n\n \n'

py-ruamel-py

 na
'ab\n\n \n'