File: pagename.t

package info (click to toggle)
ikiwiki 2.53.6
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 5,420 kB
  • ctags: 740
  • sloc: perl: 11,581; python: 353; sh: 99; makefile: 83
file content (14 lines) | stat: -rwxr-xr-x 292 bytes parent folder | download | duplicates (3)
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(pagename("foo.mdwn"), "foo");
is(pagename("foo/bar.mdwn"), "foo/bar");
is(pagename("foo.png"), "foo.png");
is(pagename("foo"), "foo");