summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2008-12-21 12:59:11 -0500
committerJoey Hess <joey@gnu.kitenet.net>2008-12-21 12:59:11 -0500
commit5b67c54b2276f053ea0a427597334e0808694727 (patch)
tree68187f608f4a4f79724beed625edb2a88bed1e2e /t
parent9bee6db8c604efd705d6d808fca3194eb4873cf4 (diff)
add another test
Diffstat (limited to 't')
-rwxr-xr-xt/beautify_urlpath.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/beautify_urlpath.t b/t/beautify_urlpath.t
index b9d3493a2..94b923d3b 100755
--- a/t/beautify_urlpath.t
+++ b/t/beautify_urlpath.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 7;
+use Test::More tests => 8;
BEGIN { use_ok("IkiWiki"); }
@@ -12,5 +12,6 @@ is(IkiWiki::beautify_urlpath("../badger"), "../badger");
is(IkiWiki::beautify_urlpath("./bleh"), "./bleh");
is(IkiWiki::beautify_urlpath("foo/index.HTML"), "./foo/");
is(IkiWiki::beautify_urlpath("index.HTML"), "./");
+is(IkiWiki::beautify_urlpath("../index.HTML"), "../");
$IkiWiki::config{usedirs} = 0;
is(IkiWiki::beautify_urlpath("foo/index.HTML"), "./foo/index.HTML");