YAML Test Matrix

Test #S98Z - Block scalar with spaces only

YAML

empty block scalar: >
 
  
   
 # comment

Expected Events

+STR
+DOC
+MAP
=VAL :empty block scalar
=VAL >
-MAP
-DOC
-STR

Expected JSON

{
"empty block scalar" : ""
}

cpp-event

 ok

java-event

 ok

java-json

 json_ok

js-yaml-json

 json_ok

libyaml-event

 ok

luajit-json

 json_ok

nimyaml-event

 diff
Got Events:
+STR
+DOC
+MAP
=VAL :empty block scalar
=VAL >\n\n\n# comment\n
-MAP
-DOC
-STR

perl5-pegex-event

 diff
Got Events:
+STR
+DOC
+MAP
=VAL :empty block scalar
=VAL >\n\n\n# comment\n
-MAP
-DOC
-STR

perl5-pm-json

 json_diff
{
   "empty block scalar" : "\n \n  \n# comment\n"
}

perl5-pm-pl

 n/a
{
  'empty block scalar' => '
 
  
# comment
'
}

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  'empty block scalar' => ''
}

perl5-syck-json

 json_diff
{
   "empty block scalar" : "\n\n\n# comment\n"
}

perl5-syck-pl

 n/a
{
  'empty block scalar' => '


# comment
'
}

perl5-tiny-json

 error
YAML::Tiny failed to find multi-line scalar content at /bin/perl5-tiny-json line 14.

perl5-tiny-pl

 error
YAML::Tiny failed to find multi-line scalar content at /bin/perl5-tiny-pl line 13.

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  'empty block scalar' => ''
}

pyyaml-event

 ok

pyyaml-json

 json_ok

pyyaml-py

 n/a
{'empty block scalar': ''}

ruamel-event

 ok

ruamel-json

 json_ok

ruamel-py

 n/a
{'empty block scalar': ''}

ruby-json

 json_ok