added test file
[webpac2] / t / 1-path.t
1 #!/usr/bin/perl
2
3 use warnings;
4 use strict;
5
6 use Test::More tests => 5;
7
8 use lib 'lib';
9
10 BEGIN {
11         use_ok( 'WebPAC::Path' );
12 }
13
14 my $path = '/tmp/webpac-test-$$/file';
15
16 ok( mk_base_path( $path ), 'mk_base_path' );
17 ok( open(my $fh, '>', $path), "create $path" );
18 ok( -e $path, "exists $path" );
19 ok( unlink($path), 'unlink' );