Skip to content

Commit

Permalink
a few more Mojo::URL tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Dec 4, 2012
1 parent 71fabed commit 4e0b549
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/mojo/url.t
Expand Up @@ -76,6 +76,10 @@ is "$url", 'http://sri:foobar@kraih.com:8080?foo=23&bar=24&baz=25#23',
'right format';
$url->query([foo => 26, bar => undef, baz => undef]);
is "$url", 'http://sri:foobar@kraih.com:8080?foo=26#23', 'right format';
$url->query(Mojo::Parameters->new('a=1&b=2'));
is "$url", 'http://sri:foobar@kraih.com:8080?a=1&b=2#23', 'right format';
$url->query(c => 3);
is "$url", 'http://sri:foobar@kraih.com:8080?c=3#23', 'right format';

# Query string
$url = Mojo::URL->new(
Expand Down

0 comments on commit 4e0b549

Please sign in to comment.