* Removed backlinks page, which it turns out nothing used.
* Split off an IkiWiki.pm out of ikiwiki and have all the other modules use
it, this will allow for adding a unit test suite.
+ * Add a unit test for globlist_match().
- -- Joey Hess <joeyh@debian.org> Tue, 2 May 2006 02:51:06 -0400
+ -- Joey Hess <joeyh@debian.org> Tue, 2 May 2006 03:03:21 -0400
ikiwiki (1.0) unstable; urgency=low
--- /dev/null
+#!/usr/bin/perl
+use warnings;
+use strict;
+use Test::More tests => 11;
+
+BEGIN { use_ok("IkiWiki"); }
+ok(IkiWiki::globlist_match("foo", "*"));
+ok(IkiWiki::globlist_match("foo", "f?? !foz"));
+ok(! IkiWiki::globlist_match("foo", "f?? !foo"));
+ok(! IkiWiki::globlist_match("foo", "* !foo"));
+ok(! IkiWiki::globlist_match("foo", "foo !foo"));
+ok(IkiWiki::globlist_match("page", "?ag?"));
+ok(! IkiWiki::globlist_match("page", "?a?g?"));
+ok(! IkiWiki::globlist_match("foo.png", "* !*.*"));
+ok(IkiWiki::globlist_match("foo.png", "*.*"));
+ok(! IkiWiki::globlist_match("foo", "*.*"));