# YAML Test Matrix

--- &test-JQ4R
  Title: Spec Example 8.14. Block Sequence
  Tags: [ mapping, sequence, spec ]

YAML

block sequence:
  - one
  - two : three

Expected Events

+STR
+DOC
+MAP
=VAL :block sequence
+SEQ
=VAL :one
+MAP
=VAL :two
=VAL :three
-MAP
-SEQ
-MAP
-DOC
-STR

Expected JSON

{
"block sequence": [
"one",
{
"two": "three"
}
]
}

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

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|block.sequence
   1   14   14   14 -VAL |
   1   14   14   14 -NODE|
   1   14   14   14 =SYNX|:
   1   15   15   15 +NODE|
   1   15   15   15 =EOL |\x0a
   2    0   16   16 +SEQ |
   2    0   16   16 =DENT|..
   2    2   18   18 =SYNX|-
   2    3   19   19 =WSPC|.
   2    4   20   20 +NODE|
   2    4   20   20 +VAL |
   2    4   20   20 =TEXT|one
   2    7   23   23 -VAL |
   2    7   23   23 -NODE|
   2    7   23   23 =EOL |\x0a
   3    0   24   24 =DENT|..
   3    2   26   26 =SYNX|-
   3    3   27   27 =DENT|.
   3    4   28   28 +NODE|
   3    4   28   28 +MAP |
   3    4   28   28 +PAIR|
   3    4   28   28 +NODE|
   3    4   28   28 +VAL |
   3    4   28   28 =TEXT|two
   3    7   31   31 -VAL |
   3    7   31   31 -NODE|
   3    7   31   31 =WSPC|.
   3    8   32   32 =SYNX|:
   3    9   33   33 =WSPC|.
   3   10   34   34 +NODE|
   3   10   34   34 +VAL |
   3   10   34   34 =TEXT|three
   3   15   39   39 -VAL |
   3   15   39   39 -NODE|
   3   15   39   39 =EOL |\x0a
   4    0   40   40 -PAIR|
   4    0   40   40 -MAP |
   4    0   40   40 -NODE|
   4    0   40   40 -SEQ |
   4    0   40   40 -NODE|
   4    0   40   40 -PAIR|
   4    0   40   40 -MAP |
   4    0   40   40 -NODE|
   4    0   40   40 -DOC |

perl-pp-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

perl-pplibyaml-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

perl-syck-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

perl-tiny-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

perl-xs-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

perl-yaml-perl

 na
{
  'block sequence' => [
                        'one',
                        {
                          'two' => 'three'
                        }
                      ]
}

py-pyyaml-py

 na
{'block sequence': ['one', {'two': 'three'}]}

py-ruamel-py

 na
{'block sequence': ['one', {'two': 'three'}]}