projects
/
ikiwiki.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ca1458
)
add test for empty, and for entirely negated pagespecs
author
Joey Hess
<joey@kodama.kitenet.net>
Tue, 30 Sep 2008 19:06:12 +0000
(15:06 -0400)
committer
Joey Hess
<joey@kodama.kitenet.net>
Tue, 30 Sep 2008 19:06:12 +0000
(15:06 -0400)
t/pagespec_match.t
patch
|
blob
|
history
diff --git
a/t/pagespec_match.t
b/t/pagespec_match.t
index 9d55737470fd122b42aeb2d64c53d378e7501e95..c61d1612285944c96f05c99ef02dded5ac1edb0a 100755
(executable)
--- 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 => 5
4
;
+use Test::More tests => 5
6
;
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", "*.*"));