M: Added more test-cases.
This commit is contained in:
7
t/1.t
7
t/1.t
@@ -1,4 +1,4 @@
|
||||
use Test::More tests => 29;
|
||||
use Test::More tests => 33;
|
||||
use Test::Exception;
|
||||
|
||||
BEGIN { use_ok( 'File::DirWalk' ); }
|
||||
@@ -7,6 +7,11 @@ require_ok( 'File::DirWalk' );
|
||||
$dw = new File::DirWalk();
|
||||
is(ref($dw), 'File::DirWalk' );
|
||||
|
||||
is(SUCCESS, 1);
|
||||
is(FAILED, 0);
|
||||
is(ABORTED, -1);
|
||||
is(PRUNE, -10);
|
||||
|
||||
is ($dw->getDepth(), 0);
|
||||
dies_ok { $dw->setDepth(-1) };
|
||||
is ($dw->getDepth(), 0);
|
||||
|
||||
Reference in New Issue
Block a user