]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/pagespec_match.t
* Changed calling convention for httmllink slightly. The first three
[ikiwiki.git] / t / pagespec_match.t
index bd517f58bf430c8ba3d941cbfe9ed827a9f2b584..63c2a50987e5aced61375b4499b2b1c7abff1bc9 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 41;
+use Test::More tests => 42;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -44,6 +44,8 @@ ok(! pagespec_match("foo", "creation_month(9)"), "other month");
 ok(pagespec_match("foo", "creation_day(2)"), "day");
 ok(! pagespec_match("foo", "creation_day(3)"), "other day");
 
+ok(! pagespec_match("foo", "no_such_function(foo)"), "foo");
+
 # old style globlists
 ok(pagespec_match("foo", "foo bar"), "simple list");
 ok(pagespec_match("bar", "foo bar"), "simple list 2");