# YAML Test Matrix

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

YAML

--- |+
 ab
 
  
...

Expected Events

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

Expected JSON

"ab\n\n \n"

cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pp-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

java-json

 json_ok

js-yaml-json

 json_ok

luajit-json

 json_ok

perl5-pp-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

perl5-tiny-json

 json_diff
"ab\n"
null

perl5-pm-json

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

perl5-pm-pl

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

perl5-syck-json

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

perl5-syck-pl

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

perl5-pp-pl

 na
'ab

 
'

perl5-tiny-pl

 na
'ab
'
undef

perl5-xs-pl

 na
'ab

 
'

pyyaml-py

 na
'ab\n\n \n'

ruamel-py

 na
'ab\n\n \n'