aboutsummaryrefslogtreecommitdiff
path: root/t/basename.t
blob: 87ae42cf3cef5af7df8e2ec493c61a4bfc770dc0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use warnings;
use strict;
use Test::More tests => 6;

BEGIN { use_ok("IkiWiki"); }

is(IkiWiki::basename("/home/joey/foo/bar"), "bar");
is(IkiWiki::basename("./foo"), "foo");
is(IkiWiki::basename("baz"), "baz");
is(IkiWiki::basename("/tmp/"), "");
is(IkiWiki::basename("/home/joey/foo/"), "");