aboutsummaryrefslogtreecommitdiff
path: root/t/pagetype.mdwn
blob: 76cacd8f7070ac76b1f9b2f786271da0bb9c7e7a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/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);