# YAML Test Matrix

--- &test-JEF9:00
  Title: Trailing whitespace in streams
  Tags: [ literal ]

YAML

- |+


Expected Events

+STR
+DOC
+SEQ
=VAL |\n\n
-SEQ
-DOC
-STR

Expected JSON

[
"\n\n"
]

c-libfyaml-event

 ok

c-libyaml-event

 ok

cpp-rapidyaml-event

 ok

cpp-yamlcpp-event

 ok

dotnet-yamldotnet-event

 ok

hs-hsyaml-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

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-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-syck-json

 json_diff
[
  ""
]

perl-tiny-json

 error
YAML::Tiny failed to find multi-line scalar content at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny failed to find multi-line scalar content at /yaml/bin/perl-tiny-perl line 15.

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|+
   1    4    4    4 =EOL |\x0a
   2    0    5    5 =NEWL|\x0a
   3    0    6    6 =NEWL|\x0a
   4    0    7    7 -VAL |
   4    0    7    7 -NODE|
   4    0    7    7 -SEQ |
   4    0    7    7 -NODE|
   4    0    7    7 -DOC |

perl-pp-perl

 na
[
  '

'
]

perl-pplibyaml-perl

 na
[
  '

'
]

perl-syck-perl

 na
[
  ''
]

perl-xs-perl

 na
[
  '

'
]

perl-yaml-perl

 na
[
  '

'
]

py-pyyaml-py

 na
['\n\n']

py-ruamel-py

 na
['\n\n']