Debian Codegraph @

t/01_basic.t

raw symbols SCIP
1 use strict;
2 use Test::More;
3
4 use Cwd::Guard qw/cwd_guard/;
5 use Cwd qw/getcwd/;
6 use File::Basename;
7
8
9 my $dir = getcwd();
10 {
11 my $guard = cwd_guard( dirname(__FILE__) );
12 ok($guard);
13 isnt( $dir, getcwd() );
14 }
15
16 is($dir, getcwd() );
17
18 {
19 my $guard = cwd_guard( __FILE__ ); # fail
20 ok(!$guard);
21 ok($Cwd::Guard::Error);
22 }
23
24 done_testing();
25