# 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, whitespace ]

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"
]

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

java-snakeyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-pplibyaml-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

hs-hsyaml-json

 json_ok

java-snakeyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

lua-lyaml-json

 json_ok

perl-pp-json

 json_ok

perl-pplibyaml-json

 json_ok

perl-syck-json

 json_ok

perl-xs-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-yaml-json

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

perl-tiny-json

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

perl-tiny-perl

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

perl-pp-perl

 na
[
  'detected
',
  '

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

perl-pplibyaml-perl

 na
[
  'detected
',
  '

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

perl-syck-perl

 na
[
  'detected
',
  '

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

perl-xs-perl

 na
[
  'detected
',
  '

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

perl-yaml-perl

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

py-pyyaml-py

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

py-ruamel-py

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