Skip to content

Commit

Permalink
second trial for travis
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Franck committed Mar 16, 2017
1 parent 800315d commit ad0f677
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions t/Catmandu-Fix-import_from_string.t
Expand Up @@ -13,21 +13,21 @@ BEGIN {
}

is_deeply $pkg->new('record','JSON')->fix({ record => qq({"name":"Nicolas"}\n) }),
{ record => [{ "name" => "Nicolas" }] }, "convert single JSON object to array of hashes";
{ record => [{ "name" => "Nicolas" }] },"convert single JSON object to array of hashes";

is_deeply $pkg->new('record','JSON')->fix({ record => qq([{"name":"Nicolas"}]\n) }),
{ record => [{ "name" => "Nicolas" }] }, "convert JSON array to array of hashes";
{ record => [{ "name" => "Nicolas" }] },"convert JSON array to array of hashes";

is_deeply $pkg->new('record','YAML')->fix({ record => qq(---\nname: Nicolas\n...\n) }),
{ record => [{ "name" => "Nicolas" }] }, "convert single YAML object to array of hashes";
{ record => [{ "name" => "Nicolas" }] },"convert single YAML object to array of hashes";

is_deeply $pkg->new('record','YAML')->fix({ record => qq(---\nname: Nicolas\n...\n---\nname: Patrick\n...\n) }),
{ record => [{ "name" => "Nicolas" },{ "name" => "Patrick" }] }, "convert YAML array to array of hashes";

is_deeply $pkg->new('record','CSV')->fix({ record => qq(name\nNicolas\n) }),
{ record => [{ "name" => "Nicolas" }] }, "convert single CSV line to array of hashes";
{ record => [{ "name" => "Nicolas" }] },"convert single CSV line to array of hashes";

is_deeply $pkg->new('record','CSV', sep_char => ';')->fix({ record => qq(first_name;name\nNicolas;Franck\nPatrick;Hochstenbach\n) }),
{ record => [{ "first_name" => "Nicolas",name => "Franck" },{ "first_name" => "Patrick",name => "Hochstenbach" }] }, "convert CSV array to array of hashes";
{ record => [{ "first_name" => "Nicolas",name => "Franck" },{ "first_name" => "Patrick",name => "Hochstenbach" }] },"convert CSV array to array of hashes";

done_testing;

0 comments on commit ad0f677

Please sign in to comment.