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