summaryrefslogtreecommitdiff
path: root/t/basename.t
blob: 87ae42cf3cef5af7df8e2ec493c61a4bfc770dc0 (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::basename("/home/joey/foo/bar"), "bar");
  7. is(IkiWiki::basename("./foo"), "foo");
  8. is(IkiWiki::basename("baz"), "baz");
  9. is(IkiWiki::basename("/tmp/"), "");
  10. is(IkiWiki::basename("/home/joey/foo/"), "");