# YAML Test Matrix

--- &test-4QFQ
  Title: Spec Example 8.2. Block Indentation Indicator [1.3]
  Tags: [ 1.3-mod, folded, libyaml-err, literal, scalar, spec ]

YAML

- |
 detected
- >
 
  
  # detected
- |1
  explicit
- >
 detected

Expected Events

+STR
+DOC
+SEQ
=VAL |detected\n
=VAL >\n\n# detected\n
=VAL | explicit\n
=VAL >detected\n
-SEQ
-DOC
-STR

Expected JSON

[
"detected\n",
"\n\n# detected\n",
" explicit\n",
"detected\n"
]

cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pp-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

java-json

 json_ok

js-yaml-json

 json_ok

luajit-json

 json_ok

perl5-pp-json

 json_ok

perl5-syck-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

perl5-pm-json

 json_diff
[
  "detected\n",
  "\n \n # detected\n",
  " explicit\n",
  "detected\n"
]

perl5-tiny-json

 error
YAML::Tiny found bad indenting in line '- |1' at /bin/perl5-tiny-json line 12.

perl5-tiny-pl

 error
YAML::Tiny found bad indenting in line '- |1' at /bin/perl5-tiny-pl line 15.

perl5-pm-pl

 na
[
  'detected
',
  '
 
 # detected
',
  ' explicit
',
  'detected
'
]

perl5-pp-pl

 na
[
  'detected
',
  '

# detected
',
  ' explicit
',
  'detected
'
]

perl5-syck-pl

 na
[
  'detected
',
  '

# detected
',
  ' explicit
',
  'detected
'
]

perl5-xs-pl

 na
[
  'detected
',
  '

# detected
',
  ' explicit
',
  'detected
'
]

pyyaml-py

 na
['detected\n', '\n\n# detected\n', ' explicit\n', 'detected\n']

ruamel-py

 na
['detected\n', '\n\n# detected\n', ' explicit\n', 'detected\n']