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