diff options
author | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-12 02:44:47 +0000 |
---|---|---|
committer | joey <joey@0fa5a96a-9a0e-0410-b3b2-a0fd24251071> | 2007-02-12 02:44:47 +0000 |
commit | 479c7a1ea62d8fce3ef54f9deae89230d0b52a5d (patch) | |
tree | f8932f522aa856e9cf35d7db3420d491dd05518e /t | |
parent | fe62c0ff209bbf01a3e5eb4a7b9f3b3d99acebca (diff) | |
download | ikiwiki-479c7a1ea62d8fce3ef54f9deae89230d0b52a5d.tar ikiwiki-479c7a1ea62d8fce3ef54f9deae89230d0b52a5d.tar.gz |
* Allow plugins to add new types of tests that can be used in PageSpecs.
* Add a "conditional" plugin, which allows displaying text if a condition
is true. It is enabled by default so conditional can be used in the
basewiki.
* Use conditionals in the template for plugins, so that plugin pages
say if they're currently enabled or not, and in various other places
in the wiki.
Diffstat (limited to 't')
-rwxr-xr-x | t/pagespec_match.t | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t index bd517f58b..63c2a5098 100755 --- a/t/pagespec_match.t +++ b/t/pagespec_match.t @@ -1,7 +1,7 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 41; +use Test::More tests => 42; BEGIN { use_ok("IkiWiki"); } @@ -44,6 +44,8 @@ ok(! pagespec_match("foo", "creation_month(9)"), "other month"); ok(pagespec_match("foo", "creation_day(2)"), "day"); ok(! pagespec_match("foo", "creation_day(3)"), "other day"); +ok(! pagespec_match("foo", "no_such_function(foo)"), "foo"); + # old style globlists ok(pagespec_match("foo", "foo bar"), "simple list"); ok(pagespec_match("bar", "foo bar"), "simple list 2"); |