Unit Tests

- All unit tests now clean up the new backlog.data and synch.key files.
This commit is contained in:
Paul Beckingham
2011-08-14 14:09:12 -04:00
parent b0c8cff6a2
commit 49cabc1bfd
150 changed files with 1063 additions and 150 deletions

View File

@@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 16;
use Test::More tests => 20;
use File::Copy;
use constant false => 0;
@@ -85,6 +85,12 @@ ok (!-r 'local/undo.data', 'Removed local/undo.data');
unlink 'local/undo.save';
ok (!-r 'local/undo.save', 'Removed local/undo.save');
unlink 'local/backlog.data';
ok (!-r 'local/backlog.data', 'Removed local/backlog.data');
unlink 'local/synch.key';
ok (!-r 'local/synch.key', 'Removed local/synch.key');
unlink 'local.rc';
ok (!-r 'local.rc', 'Removed local.rc');
@@ -97,6 +103,12 @@ ok (!-r 'remote/completed.data', 'Removed remote/completed.data');
unlink 'remote/undo.data';
ok (!-r 'remote/undo.data', 'Removed remote/undo.data');
unlink 'remote/backlog.data';
ok (!-r 'remote/backlog.data', 'Removed remote/backlog.data');
unlink 'remote/synch.key';
ok (!-r 'remote/synch.key', 'Removed remote/synch.key');
unlink 'remote.rc';
ok (!-r 'remote.rc', 'Removed remote.rc');