X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/7d1cc3a0209980bdbec59ffd0b6171898a1cc066..7481329bdd11d81c4b3e85a446ab1e4bfcc298c8:/t/pagespec_match.t diff --git a/t/pagespec_match.t b/t/pagespec_match.t index c14f6d052..fe9624370 100755 --- a/t/pagespec_match.t +++ b/t/pagespec_match.t @@ -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");