YAML Framework Matrix

Test #H2RW - Blank lines

YAML

foo: 1

bar: 2
    
text: |
  a
    
  b

  c
 
  d

Expected Events

+STR
+DOC
+MAP
=VAL :foo
=VAL :1
=VAL :bar
=VAL :2
=VAL :text
=VAL |a\n  \nb\n\nc\n\nd\n
-MAP
-DOC
-STR

Expected JSON

{
"bar" : 2,
"foo" : 1,
"text" : "a\n \nb\n\nc\n\nd\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

 json_ok

perl5-pm-pl

 n/a
{
  'bar' => 2,
  'foo' => 1,
  'text' => 'a
  
b

c

d
'
}

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
{
  'bar' => 2,
  'foo' => 1,
  'text' => 'a
  
b

c

d
'
}

perl5-syck-json

 json_diff
{
   "bar" : "2",
   "foo" : "1",
   "text" : "a\n\nb\n\nc\n\nd\n"
}

perl5-syck-pl

 n/a
{
  'bar' => '2',
  'foo' => '1',
  'text' => 'a

b

c

d
'
}

perl5-tiny-json

 json_diff
{
   "bar" : "2",
   "foo" : "1",
   "text" : "a\nb\nc\nd\n"
}

perl5-tiny-pl

 n/a
{
  'bar' => '2',
  'foo' => '1',
  'text' => 'a
b
c
d
'
}

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
{
  'bar' => 2,
  'foo' => 1,
  'text' => 'a
  
b

c

d
'
}

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok