Unit Tests

- Removed useless setup/teardown tests.
This commit is contained in:
Paul Beckingham 2014-05-31 22:29:49 -04:00
parent 8d0f1f6990
commit d69d38c7d2

View file

@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 34;
use Test::More tests => 32;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@ -39,7 +39,6 @@ if (open my $fh, '>', 'pri.rc')
print $fh "data.location=.\n",
"verbose=off\n";
close $fh;
ok (-r 'pri.rc', 'Created pri.rc');
}
# Verify that priorities can be select with the 'over' and 'under' modifiers.
@ -98,11 +97,5 @@ unlike ($output, qr/_/, 'pri _ !> _');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data pri.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'pri.rc', 'Cleanup');
exit 0;