Unit Tests

- Removed useless setup/teardown tests, improving the signal to noise ratio.
This commit is contained in:
Paul Beckingham 2014-06-01 10:23:19 -04:00
parent abb663fae3
commit ca06927eea
7 changed files with 7 additions and 57 deletions

View file

@ -27,7 +27,7 @@
use strict;
use warnings;
use Test::More tests => 10;
use Test::More tests => 8;
# Ensure environment has no influence.
delete $ENV{'TASKDATA'};
@ -38,7 +38,6 @@ if (open my $fh, '>', 'font.rc')
{
print $fh "data.location=.\n";
close $fh;
ok (-r 'font.rc', 'Created font.rc');
}
# Test the fontunderline config variable. The following truth table defines
@ -77,11 +76,5 @@ unlike ($output, qr/--------/, '1,1,1 -> underline');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data font.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'font.rc', 'Cleanup');
exit 0;