]> sipb.mit.edu Git - ikiwiki.git/commitdiff
add test case for link(.) with omitted location
authorJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:27:06 +0000 (15:27 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 19:27:06 +0000 (15:27 -0400)
t/pagespec_match.t

index c14f6d052e80a248fab724ab6fce1a2ac65d5a62..fe9624370625a74a57146f8f7de80c56c6215a0b 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 86;
+use Test::More tests => 87;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -83,6 +83,7 @@ ok(pagespec_match("foo", "page(foo)"), "page() glob");
 ok(pagespec_match("foo", "page(f*)"), "page() glob fail");
 ok(pagespec_match("foo", "link(bar)"), "link");
 ok(pagespec_match("foo", "link(.)", location => "bar"), "link with .");
+ok(! pagespec_match("foo", "link(.)"), "link with . but missing location");
 ok(pagespec_match("foo", "link(ba?)"), "glob link");
 ok(! pagespec_match("foo", "link(quux)"), "failed link");
 ok(! pagespec_match("foo", "link(qu*)"), "failed glob link");