diff --git a/src/tests/wait.t b/src/tests/wait.t index 74adaf304..a4be650f8 100755 --- a/src/tests/wait.t +++ b/src/tests/wait.t @@ -28,7 +28,7 @@ use strict; use warnings; -use Test::More tests => 15; +use Test::More tests => 16; # Create the rc file. if (open my $fh, '>', 'wait.rc') @@ -74,6 +74,10 @@ unlike ($output, qr/tomorrow/ms, 'waiting task invisible'); $output = qx{../task rc:wait.rc all status:waiting wait:tomorrow}; like ($output, qr/tomorrow/ms, 'waiting task visible when specifically queried'); +# Message is 'Warning: the wait date falls after the due date.' +$output = qx{../task rc:wait.rc add Complain due:today wait:tomorrow}; +like ($output, qr/wait\sdate\sfalls/ms, 'warning on wait after due'); + # Cleanup. unlink 'pending.data'; ok (!-r 'pending.data', 'Removed pending.data');