aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-30 19:54:08 +0000
committerjoey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071>2007-05-30 19:54:08 +0000
commit66cb6baf4e205886bfbac8d90d1adc2b791102a2 (patch)
tree6e31c5bb419eb56c487fa89839835f94860e2625 /t
parent866cdd7c4a4e268f9e4528a8df80b44950c7adb3 (diff)
downloadikiwiki-66cb6baf4e205886bfbac8d90d1adc2b791102a2.tar
ikiwiki-66cb6baf4e205886bfbac8d90d1adc2b791102a2.tar.gz
* Apply a patch from Carl Worth adding support for using globs in link()
in a PageSpec.
Diffstat (limited to 't')
-rwxr-xr-xt/pagespec_match.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index 635381e2b..3a641c6a8 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 => 52;
+use Test::More tests => 54;
BEGIN { use_ok("IkiWiki"); }
@@ -40,7 +40,9 @@ $links{"examples/softwaresite/bugs/fails_to_frobnicate"}=[qw{done}];
$links{"examples/softwaresite/bugs/done"}=[];
ok(pagespec_match("foo", "link(bar)"), "link");
+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");
ok(pagespec_match("bugs/foo", "link(done)", location => "bugs/done"), "link match to bestlink");
ok(! pagespec_match("examples/softwaresite/bugs/done", "link(done)",
location => "bugs/done"), "link match to bestlink");