# YAML Test Matrix

--- &test-NP9H
  Title: Spec Example 7.5. Double Quoted Line Breaks
  Tags: [ double, scalar, spec, upto-1.2, 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

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

go-yaml-json

 json_ok

hs-hsyaml-json

 json_ok

java-snakeengine-json

 json_ok

java-snakeyaml-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,\t\nto a line feed, or \t \tnon-content"

perl-syck-json

 json_diff
"folded  to a space,\t\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: 1
   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: 1
   Document: 2
 at /perl5/lib/perl5/YAML/Loader.pm line 88.

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 +VAL |
   1    0    0    0 =SYNX|"
   1    1    1    1 =TEXT|folded
   1    7    7    7 =WSPC|.
   1    8    8    8 =FOLD|\x0a
   2    0    9    9 =TEXT|to.a.space,
   2   11   20   20 =WSPC|\x09
   2   12   21   21 =EOL |\x0a
   3    0   22   22 =WSPC|.
   3    1   23   23 =NEWL|\x0a
   4    0   24   24 =TEXT|to.a.line.feed,.or.\x09
   4   20   44   44 +ESC |
   4   20   44   44 =SYNX|\x5c
   4   21   45   45 =EOL |\x0a
   5    0   46   46 -ESC |
   5    0   46   46 =WSPC|.
   5    1   47   47 +ESC |
   5    1   47   47 =SYNX|\x5c
   5    2   48   48 =META|.
   5    3   49   49 -ESC |
   5    3   49   49 =TEXT|\x09non-content
   5   15   61   61 =SYNX|"
   5   16   62   62 -VAL |
   5   16   62   62 -NODE|
   5   16   62   62 =EOL |\x0a
   6    0   63   63 -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'