Unit Tests

- Improved the signal to noise ratio.
This commit is contained in:
Paul Beckingham
2011-09-07 00:42:38 -04:00
parent 40aca079eb
commit 5a07dce93a

View File

@@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 14;
use Test::More tests => 9;
# Create the rc file.
if (open my $fh, '>', 'subst.rc')
@@ -75,23 +75,13 @@ $output = qx{../src/task rc:subst.rc info 1};
like ($output, qr/aaa CcC/, 'regex');
# 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 'subst.rc';
ok (!-r 'subst.rc', 'Removed subst.rc');
unlink qw(pending.data completed.data undo.data backlog.data synch.key subst.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch.key' &&
! -r 'subst.rc', 'Cleanup');
exit 0;