diff options
author | Joey Hess <joey@kitenet.net> | 2010-11-29 15:01:35 -0400 |
---|---|---|
committer | Joey Hess <joey@kitenet.net> | 2010-11-29 15:01:35 -0400 |
commit | 340ac56729a6ac3c91ea93177627d9ec39fc7e78 (patch) | |
tree | 362e1d2e3fec269b5dafb45d87cb470e070fbe7d /t | |
parent | 141dc37d361107a6607b3ff549f107c26fa700d4 (diff) | |
download | ikiwiki-340ac56729a6ac3c91ea93177627d9ec39fc7e78.tar ikiwiki-340ac56729a6ac3c91ea93177627d9ec39fc7e78.tar.gz |
test w/o second parameter
Diffstat (limited to 't')
-rwxr-xr-x | t/urlto.t | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 19; +use Test::More tests => 21; BEGIN { use_ok("IkiWiki"); } @@ -25,7 +25,9 @@ is(IkiWiki::cgiurl(), "/cgi-bin/ikiwiki.cgi"); is(IkiWiki::cgiurl(do => 'badger'), "/cgi-bin/ikiwiki.cgi?do=badger"); is(IkiWiki::baseurl(undef), "/"); is(IkiWiki::urlto('index', undef), "/"); +is(IkiWiki::urlto('index'), "/"); is(IkiWiki::urlto('stoats', undef), "/stoats/"); +is(IkiWiki::urlto('stoats'), "/stoats/"); # fully-relative version (default for urlto and baseurl) is(IkiWiki::baseurl('badger/mushroom'), "../../"); |