# YAML Test Matrix

--- &test-T5N4
  Title: Spec Example 8.7. Literal Scalar [1.3]
  Tags: [ 1.3-mod, literal, scalar, spec, whitespace ]

YAML

--- |
 literal
 	text


Expected Events

+STR
+DOC ---
=VAL |literal\n\ttext\n
-DOC
-STR

Expected JSON

"literal\n\ttext\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

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-tiny-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

dotnet-yamldotnet-json

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

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 =EOL |\x0a
   2    0    6    6 =DENT|.
   2    1    7    7 =TEXT|literal
   2    8   14   14 =NEWL|\x0a
   3    0   15   15 =DENT|.
   3    1   16   16 =TEXT|\x09text
   3    6   21   21 =NEWL|\x0a
   4    0   22   22 -VAL |
   4    0   22   22 =EOL |\x0a
   5    0   23   23 =EOL |\x0a
   6    0   24   24 -NODE|
   6    0   24   24 -DOC |

perl-pp-perl

 na
'literal
	text
'

perl-pplibyaml-perl

 na
'literal
	text
'

perl-syck-perl

 na
'literal
	text
'

perl-tiny-perl

 na
'literal
	text
'

perl-xs-perl

 na
'literal
	text
'

perl-yaml-perl

 na
'literal
	text
'

py-pyyaml-py

 na
'literal\n\ttext\n'

py-ruamel-py

 na
'literal\n\ttext\n'