mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-07-07 20:06:36 +02:00
- 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:
parent
c4a61566af
commit
99b0c5568a
5 changed files with 27 additions and 16 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue