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

BEGIN { use_ok("IkiWiki"); }

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