Skip to content

Commit

Permalink
more snowman tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kraih committed Oct 22, 2015
1 parent c8908dd commit ed6ffa5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions t/mojo/url.t
Expand Up @@ -352,17 +352,17 @@ is $url->port, 3000, 'right port';
is "$url", 'https://%E2%99%A5:%E2%99%A5@xn--krih-moa.com:3000', 'right format';

# IDNA (snowman)
$url = Mojo::URL->new('http://☃:☃@☃.net/☃?☃#☃');
$url = Mojo::URL->new('http://☃:☃@☃.☃.de/☃?☃#☃');
ok $url->is_abs, 'is absolute';
is $url->scheme, 'http', 'right scheme';
is $url->userinfo, '☃:☃', 'right userinfo';
is $url->host, '☃.net', 'right host';
is $url->ihost, 'xn--n3h.net', 'right internationalized host';
is $url->host, '☃.☃.de', 'right host';
is $url->ihost, 'xn--n3h.xn--n3h.de', 'right internationalized host';
is $url->path, '/%E2%98%83', 'right path';
is $url->query, '%E2%98%83', 'right query';
is $url->fragment, '', 'right fragment';
is "$url",
'http://%E2%98%83:%E2%98%83@xn--n3h.net/%E2%98%83?%E2%98%83#%E2%98%83',
'http://%E2%98%83:%E2%98%83@xn--n3h.xn--n3h.de/%E2%98%83?%E2%98%83#%E2%98%83',
'right format';

# IRI/IDNA
Expand Down

0 comments on commit ed6ffa5

Please sign in to comment.