aboutsummaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-09-30 15:06:12 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-09-30 15:06:12 -0400
commit3ef2824350a37a562df6394b801e8006eac22626 (patch)
tree56e3ce3991cd653cc805455a9e57ad1fc0224d6c /t
parent0ca14589f3bd529556ded67466ebfbfa757419db (diff)
downloadikiwiki-3ef2824350a37a562df6394b801e8006eac22626.tar
ikiwiki-3ef2824350a37a562df6394b801e8006eac22626.tar.gz
add test for empty, and for entirely negated pagespecs
Diffstat (limited to 't')
-rwxr-xr-xt/pagespec_match.t4
1 files changed, 3 insertions, 1 deletions
diff --git a/t/pagespec_match.t b/t/pagespec_match.t
index 9d5573747..c61d16122 100755
--- a/t/pagespec_match.t
+++ b/t/pagespec_match.t
@@ -1,11 +1,13 @@
#!/usr/bin/perl
use warnings;
use strict;
-use Test::More tests => 54;
+use Test::More tests => 56;
BEGIN { use_ok("IkiWiki"); }
ok(pagespec_match("foo", "*"));
+ok(!pagespec_match("foo", ""));
+ok(pagespec_match("foo", "!bar"));
ok(pagespec_match("page", "?ag?"));
ok(! pagespec_match("page", "?a?g?"));
ok(pagespec_match("foo.png", "*.*"));