# YAML Test Matrix

--- &test-93WF
  Title: Spec Example 6.6. Line Folding [1.3]
  Tags: [ 1.3-mod, folded, scalar, spec, whitespace ]

YAML

--- >-
  trimmed
  
 

  as
  space

Expected Events

+STR
+DOC ---
=VAL >trimmed\n\n\nas space
-DOC
-STR

Expected JSON

"trimmed\n\n\nas space"

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

perl-yaml-json

 json_ok

py-pyyaml-json

 json_ok

py-ruamel-json

 json_ok

ruby-psych-json

 json_ok

perl-tiny-json

 json_diff
"trimmed as space"

hs-reference-yeast

 na
Line  Col Char Byte Token|Content
   1    0    0    0 +DOC |
   1    0    0    0 =HEAD|---
   1    3    3    3 +NODE|
   1    3    3    3 =WSPC|.
   1    4    4    4 +VAL |
   1    4    4    4 =SYNX|>
   1    5    5    5 =SYNX|-
   1    6    6    6 =EOL |\x0a
   2    0    7    7 =DENT|..
   2    2    9    9 =TEXT|trimmed
   2    9   16   16 =EOL |\x0a
   3    0   17   17 =DENT|..
   3    2   19   19 =NEWL|\x0a
   4    0   20   20 =DENT|.
   4    1   21   21 =NEWL|\x0a
   5    0   22   22 =NEWL|\x0a
   6    0   23   23 =DENT|..
   6    2   25   25 =TEXT|as
   6    4   27   27 =FOLD|\x0a
   7    0   28   28 =DENT|..
   7    2   30   30 =TEXT|space
   7    7   35   35 -VAL |
   7    7   35   35 =EOL |\x0a
   8    0   36   36 -NODE|
   8    0   36   36 -DOC |

perl-pp-perl

 na
'trimmed


as space'

perl-pplibyaml-perl

 na
'trimmed


as space'

perl-syck-perl

 na
'trimmed


as space'

perl-tiny-perl

 na
'trimmed as space'

perl-xs-perl

 na
'trimmed


as space'

perl-yaml-perl

 na
'trimmed


as space'

py-pyyaml-py

 na
'trimmed\n\n\nas space'

py-ruamel-py

 na
'trimmed\n\n\nas space'