add test for empty, and for entirely negated pagespecs
parent
0ca14589f3
commit
3ef2824350
|
@ -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", "*.*"));
|
||||
|
|
Loading…
Reference in New Issue