# YAML Test Matrix

--- &test-Q8AD
  Title: Spec Example 7.5. Double Quoted Line Breaks [1.3]
  Tags: [ 1.3-mod, double, scalar, spec, whitespace ]

YAML

---
"folded 
to a space,
 
to a line feed, or 	\
 \ 	non-content"

Expected Events

+STR
+DOC ---
=VAL "folded to a space,\nto a line feed, or \t \tnon-content
-DOC
-STR

Expected JSON

"folded to a space,\nto a line feed, or \t \tnon-content"

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

go-yaml-json

 json_ok

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

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

dotnet-yamldotnet-json

 json_diff
parse error: Invalid string: control characters from U+0000 through U+001F must be escaped at line 1, column 55

js-jsyaml-json

 json_diff
"folded  to a space,\nto a line feed, or \t \tnon-content"

perl-syck-json

 json_diff
"folded  to a space,\nto a line feed, or \t\\ \tnon-content"

perl-tiny-json

 error
YAML::Tiny failed to classify line '"folded ' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny failed to classify line '"folded ' at /yaml/bin/perl-tiny-perl line 15.

perl-yaml-json

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 2
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

perl-yaml-perl

 error
YAML Error: Expected separator '---'
   Code: YAML_PARSE_ERR_NO_SEPARATOR
   Line: 2
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 =EOL |\x0a
   2    0    4    4 +NODE|
   2    0    4    4 +VAL |
   2    0    4    4 =SYNX|"
   2    1    5    5 =TEXT|folded
   2    7   11   11 =WSPC|.
   2    8   12   12 =FOLD|\x0a
   3    0   13   13 =TEXT|to.a.space,
   3   11   24   24 =EOL |\x0a
   4    0   25   25 =WSPC|.
   4    1   26   26 =NEWL|\x0a
   5    0   27   27 =TEXT|to.a.line.feed,.or.\x09
   5   20   47   47 +ESC |
   5   20   47   47 =SYNX|\x5c
   5   21   48   48 =EOL |\x0a
   6    0   49   49 -ESC |
   6    0   49   49 =WSPC|.
   6    1   50   50 +ESC |
   6    1   50   50 =SYNX|\x5c
   6    2   51   51 =META|.
   6    3   52   52 -ESC |
   6    3   52   52 =TEXT|\x09non-content
   6   15   64   64 =SYNX|"
   6   16   65   65 -VAL |
   6   16   65   65 -NODE|
   6   16   65   65 =EOL |\x0a
   7    0   66   66 -DOC |

perl-pp-perl

 na
'folded to a space,
to a line feed, or 	 	non-content'

perl-pplibyaml-perl

 na
'folded to a space,
to a line feed, or 	 	non-content'

perl-syck-perl

 na
'folded  to a space,
to a line feed, or 	\\ 	non-content'

perl-xs-perl

 na
'folded to a space,
to a line feed, or 	 	non-content'

py-pyyaml-py

 na
'folded to a space,\nto a line feed, or \t \tnon-content'

py-ruamel-py

 na
'folded to a space,\nto a line feed, or \t \tnon-content'