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 => 9;
use Test::More tests => 10;
# Create the rc file.
if (open my $fh, '>', 'args.rc')
@@ -64,6 +64,9 @@ like ($output, qr/Description\s+project:p\spri:H\s\+tag\sfoo\n/ms, 'task 1 -- pr
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');