aboutsummaryrefslogtreecommitdiff
path: root/t/pagetitle.t
blob: d9aa620633d6b64e393a366c19a510b3e851542f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 7;

BEGIN { use_ok("IkiWiki"); }

is(pagetitle("foo_bar"), "foo bar");
is(pagetitle("foo_bar_baz"), "foo bar baz");
is(pagetitle("foo_bar__33__baz"), "foo bar!baz");
is(pagetitle("foo_bar__1234__baz"), "foo barӒbaz");
is(pagetitle("foo_bar___33___baz"), "foo bar ! baz");
is(pagetitle("foo_bar___95___baz"), "foo bar _ baz");