mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-21 16:53:08 +02:00
Unit Tests - Duration
- Added tests for Duration::negative.
This commit is contained in:
parent
bef7b9b655
commit
e44c4ffb82
1 changed files with 4 additions and 2 deletions
|
@ -48,7 +48,7 @@ int convertDuration (const std::string& input)
|
|||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (577);
|
||||
UnitTest t (579);
|
||||
|
||||
Duration d;
|
||||
|
||||
|
@ -700,7 +700,9 @@ int main (int argc, char** argv)
|
|||
catch (const std::string& e) { t.diag (e); }
|
||||
catch (...) { t.diag ("Unknown error"); }
|
||||
|
||||
// TODO Duration::negative
|
||||
// Duration::negative
|
||||
t.ok ( Duration ("-1day").negative (), "-1day is negative");
|
||||
t.ok (! Duration ("1day").negative (), "1day is not negative");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue