Unit Tests

- All unit tests most now clean up a residual undo.data file, so the
  number of tests increased, but with no benefit.
This commit is contained in:
Paul Beckingham
2009-06-28 17:07:25 -04:00
parent 5d8c28f72f
commit dc2bac1b5e
66 changed files with 261 additions and 78 deletions

View File

@@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 8;
use Test::More tests => 9;
# 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 'undo.data';
ok (!-r 'undo.data', 'Removed undo.data');
unlink 'args.rc';
ok (!-r 'args.rc', 'Removed args.rc');