typo
parent
ba00fb319c
commit
5dba91cdc8
|
@ -6,7 +6,7 @@ The directive displays a calendar, similar to the typical calendars shown on
|
||||||
some blogs.
|
some blogs.
|
||||||
|
|
||||||
Since ikiwiki is a wiki compiler, to keep the calendar up-to-date,
|
Since ikiwiki is a wiki compiler, to keep the calendar up-to-date,
|
||||||
wikis that include it need to be periodically refreshes, typically by cron
|
wikis that include it need to be periodically refreshed, typically by cron
|
||||||
at midnight. Example crontab:
|
at midnight. Example crontab:
|
||||||
|
|
||||||
0 0 * * * ikiwiki -setup ~/ikiwiki.setup -refresh
|
0 0 * * * ikiwiki -setup ~/ikiwiki.setup -refresh
|
||||||
|
|
|
@ -57,3 +57,21 @@ ok(! $s->influences->{foo}, "removed 0 influence");
|
||||||
ok(! $s->influences->{bar}, "removed 1 influence");
|
ok(! $s->influences->{bar}, "removed 1 influence");
|
||||||
ok($s->influences->{baz}, "set influence");
|
ok($s->influences->{baz}, "set influence");
|
||||||
ok($s->influences_static);
|
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");
|
||||||
|
|
Loading…
Reference in New Issue