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:
@@ -28,7 +28,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::More tests => 4;
|
||||
use Test::More tests => 5;
|
||||
|
||||
# Create the rc file.
|
||||
if (open my $fh, '>', 'recur.rc')
|
||||
@@ -53,6 +53,9 @@ like ($output, qr/first .* third .* second/msx, 'daily 3d weekly');
|
||||
$output = qx{../src/task rc:recur.rc desc};
|
||||
like ($output, qr/second .* third .* first/msx, 'weekly 3d daily');
|
||||
|
||||
$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' &&
|
||||
|
||||
Reference in New Issue
Block a user