From 50a052990ce53065dced9c4e416876016be34033 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 19 Jul 2015 20:45:42 -0400 Subject: [PATCH] Test: Added denotate test --- test/denotate.t | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/denotate.t b/test/denotate.t index b177b9f85..2b1f6d47b 100755 --- a/test/denotate.t +++ b/test/denotate.t @@ -27,7 +27,7 @@ use strict; use warnings; -use Test::More tests => 25; +use Test::More tests => 26; # Ensure environment has no influence. delete $ENV{'TASKDATA'}; @@ -111,6 +111,9 @@ like ($output, qr/one.+\d{1,2}\/\d{1,2}\/\d{4} Bert/ms, "$ut like ($output, qr/Bert.+\d{1,2}\/\d{1,2}\/\d{4} Kermit the frog/ms, "$ut: Delete partial match - Kermit the frog"); unlike ($output, qr/frog.+\d{1,2}\/\d{1,2}\/\d{4} Kermit and Miss Piggy/ms, "$ut: Delete partial match - Kermit and Miss Piggy"); # 25 +$output = qx{../src/task rc:$rc 999 denotate 2>&1}; +like ($output, qr/No tasks specified./, "$ut: No matching tasks"); + # Cleanup. unlink qw(pending.data completed.data undo.data backlog.data), $rc; exit 0;