fix testsuite

typedlink matchspec was removed
master
Joey Hess 2010-04-10 14:40:03 -04:00
parent 61cbcb049f
commit 1004e6c739
1 changed files with 1 additions and 6 deletions

View File

@ -3,7 +3,7 @@ package IkiWiki;
use warnings; use warnings;
use strict; use strict;
use Test::More tests => 10; use Test::More tests => 7;
BEGIN { use_ok("IkiWiki"); } BEGIN { use_ok("IkiWiki"); }
BEGIN { use_ok("IkiWiki::Plugin::tag"); } BEGIN { use_ok("IkiWiki::Plugin::tag"); }
@ -36,9 +36,4 @@ ok(!pagespec_match("two", "tagged(alpha)"));
ok(pagespec_match("one", "link(tags/numbers)")); ok(pagespec_match("one", "link(tags/numbers)"));
ok(pagespec_match("one", "link(alpha)")); ok(pagespec_match("one", "link(alpha)"));
ok(pagespec_match("one", "typedlink(tag tags/numbers)"));
ok(!pagespec_match("one", "typedlink(tag tags/letters)"));
# invalid syntax
ok(pagespec_match("one", "typedlink(tag)")->isa("IkiWiki::ErrorReason"));
1; 1;