Skip to content

Commit

Permalink
more diverse empty parameter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 7, 2014
1 parent 2d1cf0e commit 61d55c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions t/mojo/parameters.t
Expand Up @@ -91,11 +91,11 @@ is "$params", 'foo=bar;baz=23', 'right format';
$params = Mojo::Parameters->new('c=');
is $params->to_hash->{c}, '', 'right value';
is_deeply $params->to_hash, {c => ''}, 'right structure';
$params = Mojo::Parameters->new('c=&c=&d=');
$params = Mojo::Parameters->new('c=&c=&d');
is_deeply $params->to_hash->{c}, ['', ''], 'right values';
is $params->to_hash->{d}, '', 'right value';
is_deeply $params->to_hash, {c => ['', ''], d => ''}, 'right structure';
$params = Mojo::Parameters->new('c=&d=0&e=');
$params = Mojo::Parameters->new('c&d=0&e=');
is $params->to_hash->{c}, '', 'right value';
is $params->to_hash->{d}, 0, 'right value';
is $params->to_hash->{e}, '', 'right value';
Expand Down

0 comments on commit 61d55c2

Please sign in to comment.