aboutsummaryrefslogtreecommitdiff
path: root/t/pagespec_match.t
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2009-10-07 20:35:26 -0400
committerJoey Hess <joey@gnu.kitenet.net>2009-10-07 20:35:26 -0400
commit54fb82a5a47078f6865ed5bf7d7c09db4bf34e22 (patch)
tree68803b97c453523956b906ad468796c57e43e5eb /t/pagespec_match.t
parent4002d7c1a4657e769b036c6e76106991ec5c3897 (diff)
downloadikiwiki-54fb82a5a47078f6865ed5bf7d7c09db4bf34e22.tar
ikiwiki-54fb82a5a47078f6865ed5bf7d7c09db4bf34e22.tar.gz
more influences tests
Diffstat (limited to 't/pagespec_match.t')
-rwxr-xr-xt/pagespec_match.t8
1 files changed, 7 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index f73bfdfe1..1a0db1cef 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 => 61;
+use Test::More tests => 64;
BEGIN { use_ok("IkiWiki"); }
@@ -103,3 +103,9 @@ $ret=pagespec_match("bar", "created_before(foo)");
is(join(",", $ret->influences), 'foo', "created_before is influenced by the comparison page");
$ret=pagespec_match("bar", "created_after(foo)");
is(join(",", $ret->influences), 'foo', "created_after is influenced by the comparison page");
+$ret=pagespec_match("bar", "link(quux) and created_after(foo)");
+is(join(",", sort $ret->influences), 'foo,quux', "influences add up over AND");
+$ret=pagespec_match("bar", "link(quux) and created_after(foo)");
+is(join(",", sort $ret->influences), 'foo,quux', "influences add up over OR");
+$ret=pagespec_match("bar", "!link(quux) and !created_after(foo)");
+is(join(",", sort $ret->influences), 'foo,quux', "influences unaffected by negation");