- Fixed bug that accepted a recurrence duration of '7' as '7secs' instead
  of the intended '7days'.  It is now an error to omit the units.  Thanks to
  Vlad Zhivotnev, Stanley G.
- Modified unit tests to avoid a different error.
This commit is contained in:
Paul Beckingham 2012-07-08 14:21:16 -04:00
parent c4a61566af
commit 99b0c5568a
5 changed files with 27 additions and 16 deletions

View file

@ -42,9 +42,9 @@ if (open my $fh, '>', 'outerr.rc')
# error
# Check that errors are sent to standard error
my $stdout = qx{../src/task rc:outerr.rc add due:__ 2> /dev/null};
my $stdout = qx{../src/task rc:outerr.rc add due:__ foo 2> /dev/null};
unlike ($stdout, qr/^The duration '__' was not recognized as valid, with correct units like '3days'.$/ms, 'Errors are not sent to stdout');
my $stderr = qx{../src/task rc:outerr.rc add due:__ 2>&1 >/dev/null};
my $stderr = qx{../src/task rc:outerr.rc add due:__ bar 2>&1 >/dev/null};
like ($stderr, qr/^The duration '__' was not recognized as valid, with correct units like '3days'.$/ms, 'Errors are sent to stderr');
# Check that headers are sent to standard error