mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-08-19 19:03:07 +02:00
Minor Refactoring
- Added support for more type-specific checks of attribute values. - Added support for more type-specific attribute rendering. - Improved generalized methods for checking columns in a report. - Added unit tests. - Minor code cleanup. - Added secret hidden feature for internal testing.
This commit is contained in:
parent
cffc42484e
commit
96fe3f42ba
83 changed files with 351 additions and 81 deletions
|
@ -49,7 +49,7 @@ int convertDuration (const std::string& input)
|
|||
|
||||
int main (int argc, char** argv)
|
||||
{
|
||||
UnitTest t (643);
|
||||
UnitTest t (644);
|
||||
|
||||
Duration d;
|
||||
|
||||
|
@ -791,6 +791,10 @@ int main (int argc, char** argv)
|
|||
left -= right;
|
||||
t.is ((int)(time_t)left, 1, "3 -= 2, 3 is now 1");
|
||||
t.is ((int)(time_t)right, 2, "3 -= 2, 2 is still 2");
|
||||
|
||||
// Assorted regression tests.
|
||||
left = Duration ("-864000.00000");
|
||||
t.is ((int)(time_t)left, 864000, "-864000.00000 -> 864000");
|
||||
}
|
||||
|
||||
catch (const std::string& e) { t.diag (e); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue