Unit Tests

- Improved signal to noise ratio.
This commit is contained in:
Paul Beckingham 2011-10-10 23:42:22 -04:00
parent c879eb6811
commit f64f45ac26

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 9;
use Test::More tests => 4;
# Create the rc file.
if (open my $fh, '>', 'completed.rc')
@ -51,23 +51,13 @@ like ($output, qr/one/, 'one -> completed');
unlike ($output, qr/two/, 'two -> deleted');
# Cleanup.
unlink 'pending.data';
ok (!-r 'pending.data', 'Removed pending.data');
unlink 'completed.data';
ok (!-r 'completed.data', 'Removed completed.data');
unlink 'undo.data';
ok (!-r 'undo.data', 'Removed undo.data');
unlink 'backlog.data';
ok (!-r 'backlog.data', 'Removed backlog.data');
unlink 'synch.key';
ok (!-r 'synch.key', 'Removed synch.key');
unlink 'completed.rc';
ok (!-r 'completed.rc', 'Removed completed.rc');
unlink qw(pending.data completed.data undo.data backlog.data synch.key completed.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch.key' &&
! -r 'completed.rc', 'Cleanup');
exit 0;