summaryrefslogtreecommitdiff
path: root/t/pagename.t
blob: c7f1ce1801d92ee470f901e7f9f1eca35a6fa6fb (plain)
  1. #!/usr/bin/perl
  2. use warnings;
  3. use strict;
  4. use Test::More tests => 5;
  5. BEGIN { use_ok("IkiWiki"); }
  6. # Used internally.
  7. $IkiWiki::hooks{htmlize}{mdwn}{call}=sub {};
  8. is(pagename("foo.mdwn"), "foo");
  9. is(pagename("foo/bar.mdwn"), "foo/bar");
  10. is(pagename("foo.png"), "foo.png");
  11. is(pagename("foo"), "foo");