summaryrefslogtreecommitdiff
path: root/t/pagename.t
blob: 96e6a87f11e87b4e8e945ccc077dc40a2e826ef9 (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}=1;
  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");