YAML Framework Matrix

Test #9YRD - Multiline Scalar at Top Level

YAML

a
b  
  c
d

e

Expected Events

+STR
+DOC
=VAL :a b c d\ne
-DOC
-STR

Expected JSON

"a b c d\ne"

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

 diff
Got Events:
+STR
+DOC
=VAL :a
-DOC
+DOC
=VAL :b
-DOC
+DOC
=VAL :  c
-DOC
+DOC
=VAL :d
-DOC
+DOC
=VAL :e
-DOC
-STR

perl5-pm-json

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 

perl5-pm-pl

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 1
   Document: 2
 

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
'a b c d
e'

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
'a b c d
e'

perl5-tiny-json

 error
YAML::Tiny failed to classify line 'a' 

perl5-tiny-pl

 error
YAML::Tiny failed to classify line 'a' 

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
'a b c d
e'

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok