summaryrefslogtreecommitdiff
path: root/t/pagetitle.t
blob: 1bb4421e4457b870ffd5d7e34c56b9faca085311 (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More tests => 6;
  5. BEGIN { use_ok("IkiWiki"); }
  6. is(IkiWiki::pagetitle("foo_bar"), "foo bar");
  7. is(IkiWiki::pagetitle("foo_bar_baz"), "foo bar baz");
  8. is(IkiWiki::pagetitle("foo_bar__33__baz"), "foo bar!baz");
  9. is(IkiWiki::pagetitle("foo_bar__1234__baz"), "foo barӒbaz");
  10. is(IkiWiki::pagetitle("foo_bar___33___baz"), "foo bar ! baz");