# YAML Test Matrix

--- &test-7T8X
  Title: Spec Example 8.10. Folded Lines - 8.13. Final Empty Lines
  Tags: [ 1.3-err, comment, folded, scalar, spec ]

YAML

>

 folded
 line

 next
 line
   * bullet

   * list
   * lines

 last
 line

# Comment

Expected Events

+STR
+DOC
=VAL >\nfolded line\nnext line\n  * bullet\n\n  * list\n  * lines\n\nlast line\n
-DOC
-STR

Expected JSON

"\nfolded line\nnext line\n  * bullet\n\n  * list\n  * lines\n\nlast line\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-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 '>' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny failed to classify line '>' 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.

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 =EOL |\x0a
   2    0    2    2 =NEWL|\x0a
   3    0    3    3 =DENT|.
   3    1    4    4 =TEXT|folded
   3    7   10   10 =FOLD|\x0a
   4    0   11   11 =DENT|.
   4    1   12   12 =TEXT|line
   4    5   16   16 =EOL |\x0a
   5    0   17   17 =NEWL|\x0a
   6    0   18   18 =DENT|.
   6    1   19   19 =TEXT|next
   6    5   23   23 =FOLD|\x0a
   7    0   24   24 =DENT|.
   7    1   25   25 =TEXT|line
   7    5   29   29 =NEWL|\x0a
   8    0   30   30 =DENT|.
   8    1   31   31 =TEXT|..*.bullet
   8   11   41   41 =NEWL|\x0a
   9    0   42   42 =NEWL|\x0a
  10    0   43   43 =DENT|.
  10    1   44   44 =TEXT|..*.list
  10    9   52   52 =NEWL|\x0a
  11    0   53   53 =DENT|.
  11    1   54   54 =TEXT|..*.lines
  11   10   63   63 =NEWL|\x0a
  12    0   64   64 =NEWL|\x0a
  13    0   65   65 =DENT|.
  13    1   66   66 =TEXT|last
  13    5   70   70 =FOLD|\x0a
  14    0   71   71 =DENT|.
  14    1   72   72 =TEXT|line
  14    5   76   76 =NEWL|\x0a
  15    0   77   77 -VAL |
  15    0   77   77 =EOL |\x0a
  16    0   78   78 +COMM|
  16    0   78   78 =SYNX|#
  16    1   79   79 =META|.Comment
  16    9   87   87 -COMM|
  16    9   87   87 =EOL |\x0a
  17    0   88   88 -NODE|
  17    0   88   88 -DOC |

perl-pp-perl

 na
'
folded line
next line
  * bullet

  * list
  * lines

last line
'

perl-pplibyaml-perl

 na
'
folded line
next line
  * bullet

  * list
  * lines

last line
'

perl-syck-perl

 na
'
folded line
next line
  * bullet

  * list
  * lines

last line
'

perl-xs-perl

 na
'
folded line
next line
  * bullet

  * list
  * lines

last line
'

py-pyyaml-py

 na
'\nfolded line\nnext line\n  * bullet\n\n  * list\n  * lines\n\nlast line\n'

py-ruamel-py

 na
'\nfolded line\nnext line\n  * bullet\n\n  * list\n  * lines\n\nlast line\n'