# YAML Test Matrix

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

YAML

- |+
   

Expected Events

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

Expected JSON

[
"\n"
]

c-libfyaml-event

 ok

cpp-rapidyaml-event

 ok

js-yaml-event

 ok

perl-pp-event

 ok

perl-refparser-event

 ok

c-libfyaml-json

 json_ok

js-jsyaml-json

 json_ok

js-yaml-json

 json_ok

perl-pp-json

 json_ok

c-libyaml-event

 diff
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

cpp-yamlcpp-event

 diff
Minimal Events:
+STR
+DOC
+SEQ
=VAL :\n
-SEQ
-DOC
-STR
Transformed Events:
+STR
+DOC
+SEQ
=VAL :
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
=VAL :
-SEQ
-DOC
-STR

dotnet-yamldotnet-event

 diff
Minimal Events:
+STR
+DOC
+SEQ
=VAL |\n
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

hs-hsyaml-event

 diff
Minimal Events:
+STR
+DOC
+SEQ
=VAL |\n
-SEQ
-DOC
-STR
Transformed Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

nim-nimyaml-event

 diff
Minimal Events:
+STR
+DOC
+SEQ
=VAL |\n
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

py-pyyaml-event

 diff
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

py-ruamel-event

 diff
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

rust-yamlrust-event

 diff
Minimal Events:
+STR
+DOC
+SEQ
=VAL |\n
-SEQ
-DOC
-STR
Transformed Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR
Got Events:
+STR
+DOC
+SEQ
=VAL |
-SEQ
-DOC
-STR

dotnet-yamldotnet-json

 json_diff
[
  ""
]

go-yaml-json

 json_diff
[
  ""
]

hs-hsyaml-json

 json_diff
[
  ""
]

lua-lyaml-json

 json_diff
[
  ""
]

perl-pplibyaml-json

 json_diff
[
  ""
]

perl-syck-json

 json_diff
[
  ""
]

perl-xs-json

 json_diff
[
  ""
]

perl-yaml-json

 json_diff
[
  "  \n"
]

py-pyyaml-json

 json_diff
[
  ""
]

py-ruamel-json

 json_diff
[
  ""
]

ruby-psych-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 -VAL |
   2    0    5    5 -NODE|
   2    0    5    5 -SEQ |
   2    0    5    5 -NODE|
   2    0    5    5 -DOC |
   2    0    5    5 =WSPC|...

perl-pp-perl

 na
[
  '
'
]

perl-pplibyaml-perl

 na
[
  ''
]

perl-syck-perl

 na
[
  ''
]

perl-xs-perl

 na
[
  ''
]

perl-yaml-perl

 na
[
  '  
'
]

py-pyyaml-py

 na
['']

py-ruamel-py

 na
['']