add a testcase for the weird markdown utf-8 crasher to make sure that
[ikiwiki.git] / t / pagetitle.t
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More tests => 6;
5
6 BEGIN { use_ok("IkiWiki"); }
7
8 is(IkiWiki::pagetitle("foo_bar"), "foo bar");
9 is(IkiWiki::pagetitle("foo_bar_baz"), "foo bar baz");
10 is(IkiWiki::pagetitle("foo_bar__33__baz"), "foo bar!baz");
11 is(IkiWiki::pagetitle("foo_bar__1234__baz"), "foo barӒbaz");
12 is(IkiWiki::pagetitle("foo_bar___33___baz"), "foo bar ! baz");