From: Joey Hess Date: Tue, 30 Sep 2008 19:06:12 +0000 (-0400) Subject: add test for empty, and for entirely negated pagespecs X-Git-Url: https://sipb.mit.edu/gitweb.cgi/ikiwiki.git/commitdiff_plain/3ef2824350a37a562df6394b801e8006eac22626?hp=0ca14589f3bd529556ded67466ebfbfa757419db add test for empty, and for entirely negated pagespecs --- 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", "*.*"));