mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-02 14:38:34 +02:00
Unit Tests - bug.summary.t
- Fixed tests that expected a newly-added task to have an age of '-', but on Cygwin, with the lower performance, the age is actually '3 secs'.
This commit is contained in:
parent
d77a790f21
commit
a45d6b459f
1 changed files with 2 additions and 2 deletions
|
@ -47,11 +47,11 @@ qx{../task rc:summary.rc add project:A three};
|
||||||
qx{../task rc:summary.rc do 1};
|
qx{../task rc:summary.rc do 1};
|
||||||
qx{../task rc:summary.rc delete 2};
|
qx{../task rc:summary.rc delete 2};
|
||||||
my $output = qx{../task rc:summary.rc summary};
|
my $output = qx{../task rc:summary.rc summary};
|
||||||
like ($output, qr/A\s+1\s+-\s+50%/, 'summary correctly shows 50% before report');
|
like ($output, qr/A\s+1\s+(?:-|\d\ssecs?)\s+50%/, 'summary correctly shows 50% before report');
|
||||||
|
|
||||||
qx{../task rc:summary.rc list};
|
qx{../task rc:summary.rc list};
|
||||||
$output = qx{../task rc:summary.rc summary};
|
$output = qx{../task rc:summary.rc summary};
|
||||||
like ($output, qr/A\s+1\s+-\s+50%/, 'summary correctly shows 50% after report');
|
like ($output, qr/A\s+1\s+(?:-|\d\ssecs?)\s+50%/, 'summary correctly shows 50% after report');
|
||||||
|
|
||||||
# Cleanup.
|
# Cleanup.
|
||||||
unlink 'pending.data';
|
unlink 'pending.data';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue