X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/642f73a39fa5249e01b384cda24e44bfb805e971..8c19da175a2265e63c2e0f07879f01b694c5c34a:/t/pagetitle.t?ds=sidebyside diff --git a/t/pagetitle.t b/t/pagetitle.t index 1bb4421e4..d9aa62063 100755 --- a/t/pagetitle.t +++ b/t/pagetitle.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::pagetitle("foo_bar"), "foo bar"); -is(IkiWiki::pagetitle("foo_bar_baz"), "foo bar baz"); -is(IkiWiki::pagetitle("foo_bar__33__baz"), "foo bar!baz"); -is(IkiWiki::pagetitle("foo_bar__1234__baz"), "foo barӒbaz"); -is(IkiWiki::pagetitle("foo_bar___33___baz"), "foo bar ! baz"); +is(pagetitle("foo_bar"), "foo bar"); +is(pagetitle("foo_bar_baz"), "foo bar baz"); +is(pagetitle("foo_bar__33__baz"), "foo bar!baz"); +is(pagetitle("foo_bar__1234__baz"), "foo barӒbaz"); +is(pagetitle("foo_bar___33___baz"), "foo bar ! baz"); +is(pagetitle("foo_bar___95___baz"), "foo bar _ baz");