]> sipb.mit.edu Git - ikiwiki.git/blobdiff - t/pagespec_match.t
add test for link(.)
[ikiwiki.git] / t / pagespec_match.t
index 97bcc969c4068a958024658dc90f1801304dd2fd..c14f6d052e80a248fab724ab6fce1a2ac65d5a62 100755 (executable)
@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 use warnings;
 use strict;
-use Test::More tests => 85;
+use Test::More tests => 86;
 
 BEGIN { use_ok("IkiWiki"); }
 
@@ -82,6 +82,7 @@ ok(! pagespec_match("foo.png", "page(foo*)"), "page() fails on non-page glob");
 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(ba?)"), "glob link");
 ok(! pagespec_match("foo", "link(quux)"), "failed link");
 ok(! pagespec_match("foo", "link(qu*)"), "failed glob link");