From cade134f40b710a1aa30a10e2a3f0c9b131efb45 Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Tue, 3 Aug 2010 23:12:40 -0400 Subject: [PATCH] Unit tests - Fixed bug in color.duetoday.t: now that the definition of overdue means 'due < now', adding a task with 'due:now' instantly creates an overdue task, not a due task. To create a due task, use 'due:1hr' or some duration which gets added to now. --- src/tests/color.duetoday.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tests/color.duetoday.t b/src/tests/color.duetoday.t index b0c4dd5c0..bf5cb922d 100755 --- a/src/tests/color.duetoday.t +++ b/src/tests/color.duetoday.t @@ -42,7 +42,7 @@ if (open my $fh, '>', 'color.rc') # Test the add command. qx{../task rc:color.rc add due:12/31/2037 nothing}; -qx{../task rc:color.rc add due:today red}; +qx{../task rc:color.rc add due:1hr red}; my $output = qx{../task rc:color.rc list}; like ($output, qr/ (?!<\033\[\d\dm) \d{1,2}\/\d{1,2}\/\d{4} (?!>\033\[0m) .* nothing /x, 'none');