From b0abe5a5ba98969a28e24dbace288e03db85f6ee Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 11 Sep 2011 01:03:51 -0400 Subject: [PATCH] Unit Tests - Improved signal to noise ratio, which in this case helps with testing. --- test/recur.until.t | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/test/recur.until.t b/test/recur.until.t index 524be3a7e..0763439a5 100755 --- a/test/recur.until.t +++ b/test/recur.until.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 12; +use Test::More tests => 7; # Create the rc file. if (open my $fh, '>', 'recur.rc') @@ -53,23 +53,13 @@ $output = qx{../src/task rc:recur.rc list}; like ($output, qr/and has been deleted/, 'Parent task deleted'); # Cleanup. -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'); - -unlink 'backlog.data'; -ok (!-r 'backlog.data', 'Removed backlog.data'); - -unlink 'synch.key'; -ok (!-r 'synch.key', 'Removed synch.key'); - -unlink 'recur.rc'; -ok (!-r 'recur.rc', 'Removed recur.rc'); +unlink qw(pending.data completed.data undo.data backlog.data synch.key recur.rc); +ok (! -r 'pending.data' && + ! -r 'completed.data' && + ! -r 'undo.data' && + ! -r 'backlog.data' && + ! -r 'synch.key' && + ! -r 'recur.rc', 'Cleanup'); exit 0;