Unit Tests

- Now that the 'diagnostics' command can detect duplicate UUID
  values, it makes sense to incorporate that into unit tests that
  employ multiple recurring tasks.
This commit is contained in:
Paul Beckingham 2012-03-03 10:05:27 -05:00
parent 173d24b3fb
commit 524f7f0919
10 changed files with 40 additions and 10 deletions

View file

@ -28,7 +28,7 @@
use strict;
use warnings;
use Test::More tests => 10;
use Test::More tests => 11;
# Create the rc file.
if (open my $fh, '>', 'recur.rc')
@ -90,6 +90,9 @@ like ($output, qr/Deleted 1 task\./, '3 deleted');
# TODO Duplicate a recurring child task
# TODO Duplicate a recurring parent task
$output = qx{../src/task rc:recur.rc diag};
like ($output, qr/No duplicates found/, 'No duplicate UUIDs detected');
# Cleanup.
unlink qw(pending.data completed.data undo.data backlog.data synch.key recur.rc);
ok (! -r 'pending.data' &&