From f64f45ac2613f1c202781004c7c438e56a095a1a Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Mon, 10 Oct 2011 23:42:22 -0400 Subject: [PATCH] Unit Tests - Improved signal to noise ratio. --- test/completed.t | 26 ++++++++------------------ 1 file changed, 8 insertions(+), 18 deletions(-) diff --git a/test/completed.t b/test/completed.t index e3d299dc8..f6d9c508a 100755 --- a/test/completed.t +++ b/test/completed.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 9; +use Test::More tests => 4; # Create the rc file. if (open my $fh, '>', 'completed.rc') @@ -51,23 +51,13 @@ like ($output, qr/one/, 'one -> completed'); unlike ($output, qr/two/, 'two -> 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 'completed.rc'; -ok (!-r 'completed.rc', 'Removed completed.rc'); +unlink qw(pending.data completed.data undo.data backlog.data synch.key completed.rc); +ok (! -r 'pending.data' && + ! -r 'completed.data' && + ! -r 'undo.data' && + ! -r 'backlog.data' && + ! -r 'synch.key' && + ! -r 'completed.rc', 'Cleanup'); exit 0;