Unit Tests

- All tests (I hope) now properly remove completed.data on exit, which
  should prevent certain non-deterministic tinderbox results caused by
  residual data.
This commit is contained in:
Paul Beckingham 2010-08-08 13:00:05 -04:00
parent 5b8dbd8ff1
commit 98042548dd
115 changed files with 453 additions and 114 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 7;
use Test::More tests => 8;
# Create the rc file.
if (open my $fh, '>', 'due.rc')
@ -53,6 +53,9 @@ unlike ($output, qr/three/, 'overdue: task 3 does not show up');
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');