add test for empty, and for entirely negated pagespecs

master
Joey Hess 2008-09-30 15:06:12 -04:00
parent 0ca14589f3
commit 3ef2824350
1 changed files with 3 additions and 1 deletions

View File

@ -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", "*.*"));