tag: Avoid autocreating multiple tag pages that vary only in capitalization. The...
[ikiwiki.git] / t / basename.t
blob87ae42cf3cef5af7df8e2ec493c61a4bfc770dc0
1 #!/usr/bin/perl
2 use warnings;
3 use strict;
4 use Test::More tests => 6;
6 BEGIN { use_ok("IkiWiki"); }
8 is(IkiWiki::basename("/home/joey/foo/bar"), "bar");
9 is(IkiWiki::basename("./foo"), "foo");
10 is(IkiWiki::basename("baz"), "baz");
11 is(IkiWiki::basename("/tmp/"), "");
12 is(IkiWiki::basename("/home/joey/foo/"), "");