aboutsummaryrefslogtreecommitdiff
path: root/t/pagespec_match.t
diff options
context:
space:
mode:
authorJoey Hess <joey@kitenet.net>2010-08-30 15:27:06 -0400
committerJoey Hess <joey@kitenet.net>2010-08-30 15:27:06 -0400
commit82f9be09607e82cc8e00b50f20e5dd639897a333 (patch)
tree775c457c3c590d8cc0dd14dc62cfd4730e8b0652 /t/pagespec_match.t
parent5da48a39ff4a005ff941837fc01aa791735f1275 (diff)
downloadikiwiki-82f9be09607e82cc8e00b50f20e5dd639897a333.tar
ikiwiki-82f9be09607e82cc8e00b50f20e5dd639897a333.tar.gz
add test case for link(.) with omitted location
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 c14f6d052..fe9624370 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 => 86;
+use Test::More tests => 87;
BEGIN { use_ok("IkiWiki"); }
@@ -83,6 +83,7 @@ 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(.)"), "link with . but missing location");
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");