complex test

master
joey 2006-08-02 02:10:24 +00:00
parent d6c0ac5b8a
commit 895da646a8
1 changed files with 2 additions and 1 deletions

View File

@ -1,7 +1,7 @@
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 20;
use Test::More tests => 21;
BEGIN { use_ok("IkiWiki"); }
@ -17,6 +17,7 @@ ok(! IkiWiki::pagespec_match("foo", "f?? and !foo"));
ok(! IkiWiki::pagespec_match("foo", "* and !foo"));
ok(! IkiWiki::pagespec_match("foo", "foo and !foo"));
ok(! IkiWiki::pagespec_match("foo.png", "* and !*.*"));
ok(IkiWiki::pagespec_match("foo", "(bar or ((meep and foo) or (baz or foo) or beep))"));
# old style globlists
ok(IkiWiki::pagespec_match("foo", "foo bar"), "simple list");