mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-20 04:13:07 +02:00
Test: Fixed assumption in test
- Test assumed that if /foo/ appears in the output, all is well, but there is a false positive case where 'foo' is also in the path name of unrelated output.
This commit is contained in:
parent
6c3a94dbce
commit
01112e8ca8
1 changed files with 6 additions and 6 deletions
|
@ -68,22 +68,22 @@ like ($output, qr/Start\s+12\/22\/2008/, "$ut: task 1 start date as expected");
|
|||
$output = qx{../src/task rc:$rc 2 info 2>&1};
|
||||
like ($output, qr/Start\s+4\/17\/2009/, "$ut: task 2 start date as expected");
|
||||
|
||||
$output = qx{../src/task rc:$rc ls start.before:12/1/2008 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.before:12/1/2008 2>/dev/null};
|
||||
unlike ($output, qr/foo/, "$ut: no foo before 12/1/2008");
|
||||
unlike ($output, qr/bar/, "$ut: no bar before 12/1/2008");
|
||||
$output = qx{../src/task rc:$rc ls start.before:1/1/2009 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.before:1/1/2009 2>/dev/null};
|
||||
like ($output, qr/foo/, "$ut: foo before 1/1/2009");
|
||||
unlike ($output, qr/bar/, "$ut: no bar before 1/1/2009");
|
||||
$output = qx{../src/task rc:$rc ls start.before:5/1/2009 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.before:5/1/2009 2>/dev/null};
|
||||
like ($output, qr/foo/, "$ut: foo before 5/1/2009");
|
||||
like ($output, qr/bar/, "$ut: bar before 5/1/2009");
|
||||
$output = qx{../src/task rc:$rc ls start.after:12/1/2008 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.after:12/1/2008 2>/dev/null};
|
||||
like ($output, qr/foo/, "$ut: foo after 12/1/2008");
|
||||
like ($output, qr/bar/, "$ut: bar after 12/1/2008");
|
||||
$output = qx{../src/task rc:$rc ls start.after:1/1/2009 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.after:1/1/2009 2>/dev/null};
|
||||
unlike ($output, qr/foo/, "$ut: no foo after 1/1/2009");
|
||||
like ($output, qr/bar/, "$ut: bar after 1/1/2009");
|
||||
$output = qx{../src/task rc:$rc ls start.after:5/1/2009 2>&1};
|
||||
$output = qx{../src/task rc:$rc ls start.after:5/1/2009 2>/dev/null};
|
||||
unlike ($output, qr/foo/, "$ut: no foo after 5/1/2009");
|
||||
unlike ($output, qr/bar/, "$ut: no bar after 5/1/2009");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue