Unit Tests

- Changed a test that adds a task that is due in one hour, then
  verifies that the task is 'due'.  This fails when run between
  the times 2300 and 2400.  Now the test makes the task due in
  5 minutes, which narrows the window when the test can fail.
  This no longer coincides with the time the tinderbox runs.
This commit is contained in:
Paul Beckingham 2012-03-04 20:30:54 -05:00
parent 27c30d1b65
commit a95832ff3b

View file

@ -42,7 +42,7 @@ if (open my $fh, '>', 'color.rc')
# Test the add command.
qx{../src/task rc:color.rc add due:12/31/2037 nothing};
qx{../src/task rc:color.rc add due:1hr red};
qx{../src/task rc:color.rc add due:5minutes red};
my $output = qx{../src/task rc:color.rc list};
like ($output, qr/ (?!<\033\[\d\dm) \d{1,2}\/\d{1,2}\/\d{4} (?!>\033\[0m) .* nothing /x, 'none');