Skip to content

Commit

Permalink
added some more test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Feb 24, 2011
1 parent e0164cc commit 6ab261e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion t/mojolicious/lite_app.t
Expand Up @@ -12,7 +12,7 @@ BEGIN { $ENV{MOJO_NO_IPV6} = $ENV{MOJO_POLL} = 1 }
my $backup;
BEGIN { $backup = $ENV{MOJO_MODE} || ''; $ENV{MOJO_MODE} = 'development' }

use Test::More tests => 715;
use Test::More tests => 721;

# Pollution
123 =~ m/(\d+)/;
Expand Down Expand Up @@ -665,6 +665,12 @@ $t->get_ok('/unicode/a%E4b')->status_is(200)->content_is('/unicode/a%E4b');
$t->get_ok('/unicode/☃')->status_is(200)
->content_is('☃/unicode/%E2%98%83');

# GET /unicode/a b
$t->get_ok('/unicode/a b')->status_is(200)->content_is('a b/unicode/a%20b');

# GET /unicode/a\b
$t->get_ok('/unicode/a\\b')->status_is(200)->content_is('a\\b/unicode/a%5Cb');

# GET /
$t->get_ok('/')->status_is(200)->header_is(Server => 'Mojolicious (Perl)')
->header_is('X-Powered-By' => 'Mojolicious (Perl)')
Expand Down

0 comments on commit 6ab261e

Please sign in to comment.