YAML Framework Matrix

Test #D83L - Block scalar indicator order

YAML

- |2-
  explicit indent and chomp
- |-2
  chomp and explicit indent

Expected Events

+STR
+DOC
+SEQ
=VAL |explicit indent and chomp
=VAL |chomp and explicit indent
-SEQ
-DOC
-STR

Expected JSON

[
"explicit indent and chomp",
"chomp and explicit indent"
]

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
+SEQ
=VAL |explicit indent and chomp
=VAL :|-2
-SEQ
-DOC
+DOC
=VAL :  chomp and explicit indent
-DOC
-STR

perl5-pm-json

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

perl5-pm-pl

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

perl5-pp-event

 ok

perl5-pp-json

 json_ok

perl5-pp-pl

 n/a
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl5-syck-json

 json_ok

perl5-syck-pl

 n/a
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl5-tiny-json

 json_diff
[
   "explicit indent and chomp\n",
   "chomp and explicit indent"
]

perl5-tiny-pl

 n/a
[
  'explicit indent and chomp
',
  'chomp and explicit indent'
]

perl5-xs-json

 json_ok

perl5-xs-pl

 n/a
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

pyyaml-event

 ok

ruamel-event

 ok

ruby-json

 json_ok