# YAML Test Matrix

--- &test-D83L
  Title: Block scalar indicator order
  Tags: [ indent, literal ]

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

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-event

 ok

java-snakeengine-event

 ok

java-snakeyaml-event

 ok

js-yaml-event

 ok

nim-nimyaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

py-pyyaml-event

 ok

py-ruamel-event

 ok

rust-yamlrust-event

 ok

c-libfyaml-json

 json_ok

dotnet-yamldotnet-json

 json_ok

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

java-snakeengine-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

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

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

raku-yamlish-json

 error
Couldn't parse YAML
  in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
  in block <unit> at /yaml/bin/raku-yamlish-json line 6

raku-yamlish-raku

 error
Couldn't parse YAML
  in sub load-yamls at /raku/sources/44795C7AB0F35700F4CA9C3E2CC5C924EE4C608F (YAMLish) line 959
  in block <unit> at /yaml/bin/raku-yamlish-raku line 6

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 +NODE|
   1    0    0    0 +SEQ |
   1    0    0    0 =SYNX|-
   1    1    1    1 +NODE|
   1    1    1    1 =WSPC|.
   1    2    2    2 +VAL |
   1    2    2    2 =SYNX||
   1    3    3    3 =SYNX|2
   1    4    4    4 =SYNX|-
   1    5    5    5 =EOL |\x0a
   2    0    6    6 =DENT|..
   2    2    8    8 =TEXT|explicit.indent.and.chomp
   2   27   33   33 -VAL |
   2   27   33   33 =EOL |\x0a
   3    0   34   34 -NODE|
   3    0   34   34 =SYNX|-
   3    1   35   35 +NODE|
   3    1   35   35 =WSPC|.
   3    2   36   36 +VAL |
   3    2   36   36 =SYNX||
   3    3   37   37 =SYNX|-
   3    4   38   38 =SYNX|2
   3    5   39   39 =EOL |\x0a
   4    0   40   40 =DENT|..
   4    2   42   42 =TEXT|chomp.and.explicit.indent
   4   27   67   67 -VAL |
   4   27   67   67 =EOL |\x0a
   5    0   68   68 -NODE|
   5    0   68   68 -SEQ |
   5    0   68   68 -NODE|
   5    0   68   68 -DOC |

perl-pp-perl

 na
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl-pplibyaml-perl

 na
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl-syck-perl

 na
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl-tiny-perl

 na
[
  'explicit indent and chomp
',
  'chomp and explicit indent'
]

perl-xs-perl

 na
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

perl-yaml-perl

 na
[
  'explicit indent and chomp',
  'chomp and explicit indent'
]

py-pyyaml-py

 na
['explicit indent and chomp', 'chomp and explicit indent']

py-ruamel-py

 na
['explicit indent and chomp', 'chomp and explicit indent']