aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-11-30 18:05:47 -0500
committerJoey Hess <joey@gnu.kitenet.net>2009-11-30 18:05:47 -0500
commit01c0f533de4f6504df8e762125ec06f8458b1024 (patch)
treeb8a2162f9ff81533edcf6cd661e75dd8f53a0f0c
parent58ce89355f5af0bf2d9cedef66d57acc4ef76497 (diff)
downloadikiwiki-01c0f533de4f6504df8e762125ec06f8458b1024.tar
ikiwiki-01c0f533de4f6504df8e762125ec06f8458b1024.tar.gz
fix test suite after bestlink change
-rwxr-xr-xt/bestlink.t4
-rwxr-xr-xt/pagespec_match.t4
2 files changed, 6 insertions, 2 deletions
diff --git a/t/bestlink.t b/t/bestlink.t
index 033b80d74..0020a05e2 100755
--- a/t/bestlink.t
+++ b/t/bestlink.t
@@ -11,11 +11,11 @@ sub test ($$$) {
my @existing_pages=@{shift()};
%IkiWiki::pagecase=();
- %links=();
+ %pagesources=();
$IkiWiki::config{userdir}="foouserdir";
foreach my $page (@existing_pages) {
$IkiWiki::pagecase{lc $page}=$page;
- $links{$page}=[];
+ $pagesources{$page}="$page.mdwn";
}
return bestlink($page, $link);
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index d529106f7..b96947407 100755
--- a/t/pagespec_match.t
+++ b/t/pagespec_match.t
@@ -49,9 +49,13 @@ $links{"bugs/foo"}=[qw{bugs/done}];
$links{"bugs/done"}=[];
$links{"bugs/bar"}=[qw{done}];
$links{"done"}=[];
+$links{"done"}=[];
$links{"examples/softwaresite/bugs/fails_to_frobnicate"}=[qw{done}];
$links{"examples/softwaresite/bugs/done"}=[];
$links{"ook"}=[qw{/blog/tags/foo}];
+foreach my $p (keys %links) {
+ $pagesources{$p}="$p.mdwn";
+}
ok(pagespec_match("foo", "link(bar)"), "link");
ok(pagespec_match("foo", "link(ba?)"), "glob link");