# YAML Test Matrix

--- &test-XV9V
  Title: Spec Example 6.5. Empty Lines [1.3]
  Tags: [ 1.3-mod, literal, scalar, spec ]

YAML

Folding:
  "Empty line

  as a line feed"
Chomping: |
  Clipped empty lines
 

Expected Events

+STR
+DOC
+MAP
=VAL :Folding
=VAL "Empty line\nas a line feed
=VAL :Chomping
=VAL |Clipped empty lines\n
-MAP
-DOC
-STR

Expected JSON

{
"Chomping": "Clipped empty lines\n",
"Folding": "Empty line\nas a line feed"
}

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

 json_ok

perl-xs-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

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

perl-tiny-perl

 error
YAML::Tiny failed to classify line '  "Empty line' 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 +NODE|
   1    0    0    0 +MAP |
   1    0    0    0 +PAIR|
   1    0    0    0 +NODE|
   1    0    0    0 +VAL |
   1    0    0    0 =TEXT|Folding
   1    7    7    7 -VAL |
   1    7    7    7 -NODE|
   1    7    7    7 =SYNX|:
   1    8    8    8 =EOL |\x0a
   2    0    9    9 =DENT|.
   2    1   10   10 =WSPC|.
   2    2   11   11 +NODE|
   2    2   11   11 +VAL |
   2    2   11   11 =SYNX|"
   2    3   12   12 =TEXT|Empty.line
   2   13   22   22 =EOL |\x0a
   3    0   23   23 =NEWL|\x0a
   4    0   24   24 =DENT|.
   4    1   25   25 =WSPC|.
   4    2   26   26 =TEXT|as.a.line.feed
   4   16   40   40 =SYNX|"
   4   17   41   41 -VAL |
   4   17   41   41 -NODE|
   4   17   41   41 =EOL |\x0a
   5    0   42   42 -PAIR|
   5    0   42   42 +PAIR|
   5    0   42   42 +NODE|
   5    0   42   42 +VAL |
   5    0   42   42 =TEXT|Chomping
   5    8   50   50 -VAL |
   5    8   50   50 -NODE|
   5    8   50   50 =SYNX|:
   5    9   51   51 +NODE|
   5    9   51   51 =WSPC|.
   5   10   52   52 +VAL |
   5   10   52   52 =SYNX||
   5   11   53   53 =EOL |\x0a
   6    0   54   54 =DENT|..
   6    2   56   56 =TEXT|Clipped.empty.lines
   6   21   75   75 =NEWL|\x0a
   7    0   76   76 -VAL |
   7    0   76   76 =DENT|.
   7    1   77   77 =EOL |\x0a
   8    0   78   78 =EOL |\x0a
   9    0   79   79 -NODE|
   9    0   79   79 -PAIR|
   9    0   79   79 -MAP |
   9    0   79   79 -NODE|
   9    0   79   79 -DOC |

perl-pp-perl

 na
{
  'Chomping' => 'Clipped empty lines
',
  'Folding' => 'Empty line
as a line feed'
}

perl-pplibyaml-perl

 na
{
  'Chomping' => 'Clipped empty lines
',
  'Folding' => 'Empty line
as a line feed'
}

perl-syck-perl

 na
{
  'Chomping' => 'Clipped empty lines
',
  'Folding' => 'Empty line
as a line feed'
}

perl-xs-perl

 na
{
  'Chomping' => 'Clipped empty lines
',
  'Folding' => 'Empty line
as a line feed'
}

py-pyyaml-py

 na
{'Chomping': 'Clipped empty lines\n', 'Folding': 'Empty line\nas a line feed'}

py-ruamel-py

 na
{'Chomping': 'Clipped empty lines\n', 'Folding': 'Empty line\nas a line feed'}