]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/pagespec_match.t
make success and failreason objects carry an influences hash
[ikiwiki.git] / t / pagespec_match.t
index 64408f4898cb8b0671ba24fb7f2f8433e87dacae..a1fcba7c89353f8411fd91252a1216c13e1516b0 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 54;
+use Test::More tests => 56;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -88,3 +88,7 @@ ok(! pagespec_match("foo", "no_such_function(foo)"), "foo");
 my $ret=pagespec_match("foo", "(invalid");
 ok(! $ret, "syntax error");
 ok($ret =~ /syntax error/, "error message");
+
+my $ret=pagespec_match("foo", "bar or foo");
+ok($ret, "simple match");
+is($ret, "foo matches foo", "stringified return");