4 use Test::More tests => 5;
6 BEGIN { use_ok("IkiWiki"); }
9 $IkiWiki::hooks{htmlize}{mdwn}{call}=sub {};
11 is(pagename("foo.mdwn"), "foo");
12 is(pagename("foo/bar.mdwn"), "foo/bar");
13 is(pagename("foo.png"), "foo.png");
14 is(pagename("foo"), "foo");