ikiwiki/t/pagetype.mdwn

15 lines
286 B
Plaintext
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}=1;
is(pagetype("foo.mdwn"), "mdwn");
is(pagetype("foo/bar.mdwn"), "mdwn");
is(pagename("foo.png"), undef);
is(pagename("foo"), undef);