diff options
author | Joey Hess <joey@gnu.kitenet.net> | 2009-10-11 13:51:23 -0400 |
---|---|---|
committer | Joey Hess <joey@gnu.kitenet.net> | 2009-10-11 13:51:23 -0400 |
commit | 5dba91cdc88c01ac1d314f24b12eb2cda651e206 (patch) | |
tree | 1e6d375aca00631a5b797793611ce6df1025d7f7 /t | |
parent | ba00fb319c6332977ac0cc78937151add5b91335 (diff) | |
download | ikiwiki-5dba91cdc88c01ac1d314f24b12eb2cda651e206.tar ikiwiki-5dba91cdc88c01ac1d314f24b12eb2cda651e206.tar.gz |
typo
Diffstat (limited to 't')
-rwxr-xr-x | t/pagespec_match_result.t | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/t/pagespec_match_result.t b/t/pagespec_match_result.t index d9c31d6f0..c2112bf14 100755 --- a/t/pagespec_match_result.t +++ b/t/pagespec_match_result.t @@ -57,3 +57,21 @@ 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"); |