aboutsummaryrefslogtreecommitdiff
path: root/t/pagespec_match_result.t
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-11 23:53:21 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-11 23:53:21 -0400
commit139085b3f294f3a8e3fd1663aa232a9e901ca3e1 (patch)
tree1e2d5fbeed998e197db6cc295cecb89bbbc21fab /t/pagespec_match_result.t
parent1c6794f46a729eea8c7e7d49fcf7c6a54dae2ba9 (diff)
downloadikiwiki-139085b3f294f3a8e3fd1663aa232a9e901ca3e1.tar
ikiwiki-139085b3f294f3a8e3fd1663aa232a9e901ca3e1.tar.gz
add some TODO tests for influence blocking
Diffstat (limited to 't/pagespec_match_result.t')
-rwxr-xr-xt/pagespec_match_result.t18
1 files changed, 0 insertions, 18 deletions
diff --git a/t/pagespec_match_result.t b/t/pagespec_match_result.t
index c2112bf14..d9c31d6f0 100755
--- a/t/pagespec_match_result.t
+++ b/t/pagespec_match_result.t
@@ -57,21 +57,3 @@ ok(! $s->influences->{foo}, "removed 0 influence");
ok(! $s->influences->{bar}, "removed 1 influence");
ok($s->influences->{baz}, "set influence");
ok($s->influences_static);
-
-# influence blocking
-my $r=F()->block & S(foo => 1);
-ok(! $r->influences->{foo}, "failed blocker & influence -> does not pass");
-$r=F()->block | S(foo => 1);
-ok($r->influences->{foo}, "failed blocker | influence -> does pass");
-$r=S(foo => 1) & F()->block;
-ok(! $r->influences->{foo}, "influence & failed blocker -> does not pass");
-$r=S(foo => 1) | F()->block;
-ok($r->influences->{foo}, "influence | failed blocker -> does pass");
-$r=S(foo => 1) & F()->block & S(foo => 2);
-ok(! $r->influences->{foo}, "influence & failed blocker & influence -> does not pass");
-$r=S(foo => 1) | F()->block | S(foo => 2);
-ok($r->influences->{foo}, "influence | failed blocker | influence -> does pass");
-$r=S()->block & S(foo => 1);
-ok($r->influences->{foo}, "successful blocker -> does pass");
-$r=(! S()->block) & S(foo => 1);
-ok(! $r->influences->{foo}, "! successful blocker -> failed blocker");