ikiwiki/t/pagename.t

15 lines
303 B
Perl
Raw Normal View History

2006-09-11 05:52:55 +02:00
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 5;
BEGIN { use_ok("IkiWiki"); }
# Used internally.
$IkiWiki::hooks{htmlize}{mdwn}{call}=sub {};
2006-09-11 05:52:55 +02:00
is(pagename("foo.mdwn"), "foo");
is(pagename("foo/bar.mdwn"), "foo/bar");
is(pagename("foo.png"), "foo.png");
is(pagename("foo"), "foo");