]> sipb.mit.edu Git - ikiwiki.git/commitdiff
backlink influence data seems ok
authorJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 02:04:03 +0000 (22:04 -0400)
committerJoey Hess <joey@kitenet.net>
Thu, 22 Apr 2010 02:04:03 +0000 (22:04 -0400)
doc/bugs/depends_simple_mixup.mdwn
t/pagespec_match_list.t

index 472de634975bb6bfa2d8d6e4d2d2fbdd3899b0ef..e7b48f802082e59e9e1d335c70ad426ebb12924a 100644 (file)
@@ -61,4 +61,4 @@ influences should return only the successful influences.
 In light of this, commit f2b3d1341447cbf29189ab490daae418fbe5d02d seems
 thuroughly wrong. So, what about influence info for other matches
 like `!author(foo)` etc? Currently, none is returned, but it should
-be a content influence. What about backlink influence data?
+be a content influence. (Backlink influence data is ok.)
index 05dc012fedc66d6cd1ef2610dd9a5a18cad74d24..ee5d60f88d69a80d1f96ab9c513f677990ab1c2e 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 94;
+use Test::More tests => 107;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -80,7 +80,7 @@ foreach my $spec ("* and link(bar)", "* or link(bar)") {
 }
 
 # a pagespec with backlinks() will add as an influence the page with the links
-foreach my $spec ("bar or (backlink(foo) and !*.png)", "backlink(foo)") {
+foreach my $spec ("bar or (backlink(foo) and !*.png)", "backlink(foo)", "!backlink(foo)") {
        pagespec_match_list("foo2", $spec, deptype => deptype("presence"));
        ok($IkiWiki::depends{foo2}{$spec} & $IkiWiki::DEPEND_PRESENCE);
        ok(! ($IkiWiki::depends{foo2}{$spec} & ($IkiWiki::DEPEND_CONTENT | $IkiWiki::DEPEND_LINKS)));