aboutsummaryrefslogtreecommitdiff
path: root/t/pagespec_match.t
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-08-30 13:35:50 -0400
committerJoey Hess <joey@kitenet.net>2010-08-30 13:35:50 -0400
commit7d1cc3a0209980bdbec59ffd0b6171898a1cc066 (patch)
tree919a57701f4fedec4a97c3535fe82eaeda629238 /t/pagespec_match.t
parentc4d4cad3befbbd444d094cbeb0b6ebba3910a025 (diff)
downloadikiwiki-7d1cc3a0209980bdbec59ffd0b6171898a1cc066.tar
ikiwiki-7d1cc3a0209980bdbec59ffd0b6171898a1cc066.tar.gz
add test for link(.)
Diffstat (limited to 't/pagespec_match.t')
-rwxr-xr-xt/pagespec_match.t3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index 97bcc969c..c14f6d052 100755
--- a/t/pagespec_match.t
+++ b/t/pagespec_match.t
@@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 85;
+use Test::More tests => 86;
BEGIN { use_ok("IkiWiki"); }
@@ -82,6 +82,7 @@ ok(! pagespec_match("foo.png", "page(foo*)"), "page() fails on non-page glob");
ok(pagespec_match("foo", "page(foo)"), "page() glob");
ok(pagespec_match("foo", "page(f*)"), "page() glob fail");
ok(pagespec_match("foo", "link(bar)"), "link");
+ok(pagespec_match("foo", "link(.)", location => "bar"), "link with .");
ok(pagespec_match("foo", "link(ba?)"), "glob link");
ok(! pagespec_match("foo", "link(quux)"), "failed link");
ok(! pagespec_match("foo", "link(qu*)"), "failed glob link");