Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
test more special characters
  • Loading branch information
kraih committed Oct 18, 2012
1 parent c11a2d5 commit c209279
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/mojo/parameters.t
Expand Up @@ -194,10 +194,10 @@ $p->param('%foo%' => '%');
is "$p", '%25foo%25=%25', 'right result';

# Special characters
$p = Mojo::Parameters->new('foo=!$\'()*,:@/?&bar=23');
is $p->param('foo'), '!$\'()*,:@/?', 'right value';
is $p->param('bar'), 23, 'right value';
is "$p", 'foo=!$\'()*,:@/?&bar=23', 'right result';
$p = Mojo::Parameters->new('!$\'()*,:@/foo?=!$\'()*,:@/?&bar=23');
is $p->param('!$\'()*,:@/foo?'), '!$\'()*,:@/?', 'right value';
is $p->param('bar'), 23, 'right value';
is "$p", '!$\'()*,:@/foo?=!$\'()*,:@/?&bar=23', 'right result';

# No charset
$p = Mojo::Parameters->new('foo=%E2%98%83')->charset(undef);
Expand Down

0 comments on commit c209279

Please sign in to comment.