"---\n",
[ undef ],
'only_header',
+ noyamlperl => 1,
);
yaml_ok(
"---\n---\n",
[ undef, undef ],
'two_header',
+ noyamlperl => 1,
);
yaml_ok(
"--- ~\n",
[ undef ],
'one_undef',
+ noyamlperl => 1,
);
yaml_ok(
"--- ~\n",
[ undef ],
'one_undef2',
+ noyamlperl => 1,
);
yaml_ok(
"--- ~\n---\n",
[ undef, undef ],
'two_undef',
+ noyamlperl => 1,
);
# Just a scalar
"---\n- ~\n- bar\n",
[ [ undef, 'bar' ] ],
'one_listundef',
+ noyamlperl => 1,
);
# Simple hashs
"---\nfoo: bar\nthis: ~\n",
[ { this => undef, foo => 'bar' } ],
'one_hash2',
+ noyamlperl => 1,
);
# Simple array inside a hash with an undef
END_YAML
[ { foo => [ 'bar', undef, 'baz' ] } ],
'array_in_hash',
+ noyamlperl => 1,
);
# Simple hash inside a hash with an undef
END_YAML
[ { foo => undef, bar => { foo => 'bar' } } ],
'hash_in_hash',
+ noyamlperl => 1,
);
# Mixed hash and scalars inside an array
{ foo => 'bar', this => 'that' },
] ],
'hash_in_array',
+ noyamlperl => 1,
);
# Simple single quote
"--- \" \"\n",
[ ' ' ],
"only_spaces",
+ noyamlpm => 1,
+ noyamlperl => 1,
);
yaml_ok(
"--- \" foo\"\n--- \"bar \"\n",
[ " foo", "bar " ],
"leading_trailing_spaces",
+ noyamlpm => 1,
+ noyamlperl => 1,
);
# Implicit document start
END_YAML
[ [ undef, { foo => 'bar', this => 'that' }, 'baz' ] ],
'inline_nested_hash',
+ noyamlperl => 1,
);
# Empty comments