Unit Tests

- Improved signal to noise ratio of all remaining unit tests.
This commit is contained in:
Paul Beckingham 2011-10-15 22:25:38 -04:00
parent 548272fb3a
commit 44e7fdac4b
100 changed files with 847 additions and 1801 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 17;
use Test::More tests => 10;
# Create the rc file.
if (open my $fh, '>', 'date1.rc')
@ -81,29 +81,15 @@ $output = qx{../src/task rc:date3.rc rc.dateformat.report:"D b Y - a" list};
like ($output, qr/08 Apr 2010 - Thu/, 'date format D b Y - a parsed');
# 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 'date1.rc';
ok (!-r 'date1.rc', 'Removed date1.rc');
unlink 'date2.rc';
ok (!-r 'date2.rc', 'Removed date2.rc');
unlink 'date3.rc';
ok (!-r 'date3.rc', 'Removed date3.rc');
unlink qw(pending.data completed.data undo.data backlog.data synch.key date1.rc date2.rc date3.rc);
ok (! -r 'pending.data' &&
! -r 'completed.data' &&
! -r 'undo.data' &&
! -r 'backlog.data' &&
! -r 'synch.key' &&
! -r 'date1.rc' &&
! -r 'date2.rc' &&
! -r 'date3.rc', 'Cleanup');
exit 0;