mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
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:
parent
92ede80e4b
commit
cade134f40
1 changed files with 1 additions and 1 deletions
|
@ -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');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue