YAML Framework Matrix

Test #M29M - Literal Block Scalar

YAML

a: |
 ab
 
 cd
 ef
 

...

Expected Events

+STR
+DOC
+MAP
=VAL :a
=VAL |ab\n\ncd\nef\n
-MAP
-DOC ...
-STR

Expected JSON

{
"a" : "ab\n\ncd\nef\n"
}

cpp-event

 ok

java-event

 ok

java-json

 json_ok

js-yaml-json

 json_ok

libyaml-event

 ok

luajit-json

 json_ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pm-json

 error
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 8
   Document: 1
 

perl5-pm-pl

 error
YAML Error: Invalid element in map
   Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT
   Line: 8
   Document: 1
 

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  'a' => 'ab

cd
ef
'
}

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
{
  'a' => 'ab

cd
ef
'
}

perl5-tiny-json

 json_diff
{
   "a" : "ab\ncd\nef\n"
}

perl5-tiny-pl

 n/a
{
  'a' => 'ab
cd
ef
'
}

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  'a' => 'ab

cd
ef
'
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok