X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/642f73a39fa5249e01b384cda24e44bfb805e971..48a5f9f2d8daef8c16b3e4b00511e00eaa0fa024:/t/titlepage.t 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");