]> git.vanrenterghem.biz Git - git.ikiwiki.info.git/blob - t/titlepage.t
rename and comments
[git.ikiwiki.info.git] / t / titlepage.t
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More tests => 6;
6 BEGIN { use_ok("IkiWiki"); }
8 is(IkiWiki::titlepage("foo bar"), "foo_bar");
9 is(IkiWiki::titlepage("foo bar baz"), "foo_bar_baz");
10 is(IkiWiki::titlepage("foo bar/baz"), "foo_bar/baz");
11 is(IkiWiki::titlepage("foo bar&baz"), "foo_bar__38__baz");
12 is(IkiWiki::titlepage("foo bar & baz"), "foo_bar___38___baz");