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.
This commit is contained in:
@@ -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');
|
||||
|
||||
Reference in New Issue
Block a user