summaryrefslogtreecommitdiff
path: root/t/titlepage.t
blob: 5df33423e97052c4bad1ada8607fc8f44a505d4f (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More tests => 7;
  5. BEGIN { use_ok("IkiWiki"); }
  6. is(titlepage("foo bar"), "foo_bar");
  7. is(titlepage("foo bar baz"), "foo_bar_baz");
  8. is(titlepage("foo bar/baz"), "foo_bar/baz");
  9. is(titlepage("foo bar&baz"), "foo_bar__38__baz");
  10. is(titlepage("foo bar & baz"), "foo_bar___38___baz");
  11. is(titlepage("foo bar_baz"), "foo_bar__95__baz");