Skip to content

Commit

Permalink
better parameter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Nov 24, 2012
1 parent 414ac32 commit 3a8e353
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/mojo/parameters.t
Expand Up @@ -199,9 +199,9 @@ is $p->param('bar'), 23, 'right value';
is "$p", '!$\'()*,:@/foo?=!$\'()*,:@/?&bar=23', 'right result';

# No charset
$p = Mojo::Parameters->new('foo=%E4')->charset(undef);
is $p->param('foo'), "\xe4", 'right value';
is "$p", 'foo=%E4', 'right result';
is $p->clone->to_string, 'foo=%E4', 'right result';
$p = Mojo::Parameters->new('%E5=%E4')->charset(undef);
is $p->param("\xe5"), "\xe4", 'right value';
is "$p", '%E5=%E4', 'right result';
is $p->clone->to_string, '%E5=%E4', 'right result';

done_testing();

0 comments on commit 3a8e353

Please sign in to comment.