]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - t/pagetitle.t
Now that we're always using HTML5, <base href> can be relative
[git.ikiwiki.info.git] / t / pagetitle.t
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More tests => 7;
6 BEGIN { use_ok("IkiWiki"); }
8 is(pagetitle("foo_bar"), "foo bar");
9 is(pagetitle("foo_bar_baz"), "foo bar baz");
10 is(pagetitle("foo_bar__33__baz"), "foo bar&#33;baz");
11 is(pagetitle("foo_bar__1234__baz"), "foo bar&#1234;baz");
12 is(pagetitle("foo_bar___33___baz"), "foo bar &#33; baz");
13 is(pagetitle("foo_bar___95___baz"), "foo bar &#95; baz");