X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/9bee6db8c604efd705d6d808fca3194eb4873cf4..f7601954a862afd4c5a5b9ba83480af0472e1cf9:/t/beautify_urlpath.t?ds=sidebyside 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");