# YAML Test Matrix

--- &test-YD5X
  Title: Spec Example 2.5. Sequence of Sequences
  Tags: [ sequence, spec ]

YAML

- [name        , hr, avg  ]
- [Mark McGwire, 65, 0.278]
- [Sammy Sosa  , 63, 0.288]

Expected Events

+STR
+DOC
+SEQ
+SEQ
=VAL :name
=VAL :hr
=VAL :avg
-SEQ
+SEQ
=VAL :Mark McGwire
=VAL :65
=VAL :0.278
-SEQ
+SEQ
=VAL :Sammy Sosa
=VAL :63
=VAL :0.288
-SEQ
-SEQ
-DOC
-STR

Expected JSON

[
[
"name",
"hr",
"avg"
],
[
"Mark McGwire",
65,
0.278
],
[
"Sammy Sosa",
63,
0.288
]
]

cpp-event

 ok

hs-yaml-event

 ok

java-event

 ok

js-event

 ok

libyaml-event

 ok

nimyaml-event

 ok

perl5-pegex-event

 ok

perl5-pp-event

 ok

pyyaml-event

 ok

ruamel-event

 ok

hs-yaml-json

 json_ok

java-json

 json_ok

js-json

 json_ok

js-yaml-json

 json_ok

luajit-json

 json_ok

perl5-pm-json

 json_ok

perl5-pp-json

 json_ok

perl5-syck-json

 json_ok

perl5-xs-json

 json_ok

pyyaml-json

 json_ok

ruamel-json

 json_ok

ruby-json

 json_ok

perl5-tiny-json

 json_diff
[
  "[name        , hr, avg  ]",
  "[Mark McGwire, 65, 0.278]",
  "[Sammy Sosa  , 63, 0.288]"
]

perl5-pm-pl

 na
[
  [
    'name',
    'hr',
    'avg'
  ],
  [
    'Mark McGwire',
    65,
    '0.278'
  ],
  [
    'Sammy Sosa',
    63,
    '0.288'
  ]
]

perl5-pp-pl

 na
[
  [
    'name',
    'hr',
    'avg'
  ],
  [
    'Mark McGwire',
    65,
    '0.278'
  ],
  [
    'Sammy Sosa',
    63,
    '0.288'
  ]
]

perl5-syck-pl

 na
[
  [
    'name',
    'hr',
    'avg'
  ],
  [
    'Mark McGwire',
    65,
    '0.278'
  ],
  [
    'Sammy Sosa',
    63,
    '0.288'
  ]
]

perl5-tiny-pl

 na
[
  '[name        , hr, avg  ]',
  '[Mark McGwire, 65, 0.278]',
  '[Sammy Sosa  , 63, 0.288]'
]

perl5-xs-pl

 na
[
  [
    'name',
    'hr',
    'avg'
  ],
  [
    'Mark McGwire',
    65,
    '0.278'
  ],
  [
    'Sammy Sosa',
    63,
    '0.288'
  ]
]

pyyaml-py

 na
[['name', 'hr', 'avg'], ['Mark McGwire', 65, 0.278], ['Sammy Sosa', 63, 0.288]]

ruamel-py

 na
[['name', 'hr', 'avg'], ['Mark McGwire', 65, 0.278], ['Sammy Sosa', 63, 0.288]]