projects
/
ikiwiki
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
add new wiki to wikilist
[ikiwiki]
/
t
/
pagetype.mdwn
1
#!/usr/bin/perl
2
use warnings;
3
use strict;
4
use Test::More tests => 5;
5
6
BEGIN { use_ok("IkiWiki"); }
7
8
# Used internally.
9
$IkiWiki::hooks{htmlize}{mdwn}=1;
10
11
is(pagetype("foo.mdwn"), "mdwn");
12
is(pagetype("foo/bar.mdwn"), "mdwn");
13
is(pagename("foo.png"), undef);
14
is(pagename("foo"), undef);