# YAML Test Matrix

--- &test-A984
  Title: Multiline Scalar in Mapping
  Tags: [ scalar ]

YAML

a: b
 c
d:
 e
  f

Expected Events

+STR
+DOC
+MAP
=VAL :a
=VAL :b c
=VAL :d
=VAL :e f
-MAP
-DOC
-STR

Expected JSON

{
"a": "b c",
"d": "e f"
}

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 found bad indenting in line ' c' at /yaml/bin/perl-tiny-json line 12.

perl-tiny-perl

 error
YAML::Tiny found bad indenting in line ' c' at /yaml/bin/perl-tiny-perl line 15.

perl-yaml-json

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 804.

perl-yaml-perl

 error
YAML Error: Inconsistent indentation level
   Code: YAML_PARSE_ERR_INCONSISTENT_INDENTATION
   Line: 2
   Document: 1
 at /perl5/lib/perl5/YAML/Loader.pm line 804.

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|a
   1    1    1    1 -VAL |
   1    1    1    1 -NODE|
   1    1    1    1 =SYNX|:
   1    2    2    2 =WSPC|.
   1    3    3    3 +NODE|
   1    3    3    3 +VAL |
   1    3    3    3 =TEXT|b
   1    4    4    4 =FOLD|\x0a
   2    0    5    5 =DENT|.
   2    1    6    6 =TEXT|c
   2    2    7    7 -VAL |
   2    2    7    7 -NODE|
   2    2    7    7 =EOL |\x0a
   3    0    8    8 -PAIR|
   3    0    8    8 +PAIR|
   3    0    8    8 +NODE|
   3    0    8    8 +VAL |
   3    0    8    8 =TEXT|d
   3    1    9    9 -VAL |
   3    1    9    9 -NODE|
   3    1    9    9 =SYNX|:
   3    2   10   10 =EOL |\x0a
   4    0   11   11 =DENT|.
   4    1   12   12 +NODE|
   4    1   12   12 +VAL |
   4    1   12   12 =TEXT|e
   4    2   13   13 =FOLD|\x0a
   5    0   14   14 =DENT|.
   5    1   15   15 =WSPC|.
   5    2   16   16 =TEXT|f
   5    3   17   17 -VAL |
   5    3   17   17 -NODE|
   5    3   17   17 =EOL |\x0a
   6    0   18   18 -PAIR|
   6    0   18   18 -MAP |
   6    0   18   18 -NODE|
   6    0   18   18 -DOC |

perl-pp-perl

 na
{
  'a' => 'b c',
  'd' => 'e f'
}

perl-pplibyaml-perl

 na
{
  'a' => 'b c',
  'd' => 'e f'
}

perl-syck-perl

 na
{
  'a' => 'b c',
  'd' => 'e f'
}

perl-xs-perl

 na
{
  'a' => 'b c',
  'd' => 'e f'
}

py-pyyaml-py

 na
{'a': 'b c', 'd': 'e f'}

py-ruamel-py

 na
{'a': 'b c', 'd': 'e f'}