X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=t%2Ftitlepage.t;h=5df33423e97052c4bad1ada8607fc8f44a505d4f;hb=68d9d7d7cb0063209db07da13bc78a1bd0fd37b6;hp=6e1856a15763edd41328d0b3d72386d0d203b567;hpb=642f73a39fa5249e01b384cda24e44bfb805e971;p=ikiwiki.git diff --git a/t/titlepage.t b/t/titlepage.t index 6e1856a15..5df33423e 100755 --- a/t/titlepage.t +++ b/t/titlepage.t @@ -1,12 +1,13 @@ #!/usr/bin/perl use warnings; use strict; -use Test::More tests => 6; +use Test::More tests => 7; BEGIN { use_ok("IkiWiki"); } -is(IkiWiki::titlepage("foo bar"), "foo_bar"); -is(IkiWiki::titlepage("foo bar baz"), "foo_bar_baz"); -is(IkiWiki::titlepage("foo bar/baz"), "foo_bar/baz"); -is(IkiWiki::titlepage("foo bar&baz"), "foo_bar__38__baz"); -is(IkiWiki::titlepage("foo bar & baz"), "foo_bar___38___baz"); +is(titlepage("foo bar"), "foo_bar"); +is(titlepage("foo bar baz"), "foo_bar_baz"); +is(titlepage("foo bar/baz"), "foo_bar/baz"); +is(titlepage("foo bar&baz"), "foo_bar__38__baz"); +is(titlepage("foo bar & baz"), "foo_bar___38___baz"); +is(titlepage("foo bar_baz"), "foo_bar__95__baz");