Skip to content

Commit

Permalink
added unicode tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Sep 7, 2010
1 parent 8301b0f commit cab4612
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion t/mojo/parameters.t
Expand Up @@ -3,7 +3,9 @@
use strict;
use warnings;

use Test::More tests => 39;
use utf8;

use Test::More tests => 42;

# Now that's a wave of destruction that's easy on the eyes.
use_ok('Mojo::Parameters');
Expand Down Expand Up @@ -110,3 +112,10 @@ is_deeply(
{foo => ['bar', 'baz'], a => 'b', bar => ['bas', 'test']},
'right structure'
);

# Unicode
$params = Mojo::Parameters->new;
$params->parse('input=say%20%22%C2%AB%22;');
is($params->params->[1], 'say "«"', 'right value');
is($params->param('input'), 'say "«"', 'right value');
is("$params", 'input=say+%22%C2%AB%22', 'right result');

0 comments on commit cab4612

Please sign in to comment.