Unit Tests - Date

- Added unit tests for Date::operator-.
This commit is contained in:
Paul Beckingham 2010-07-28 19:58:32 -04:00
parent e44c4ffb82
commit 4d266412ee

View file

@ -34,7 +34,7 @@ Context context;
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (149);
UnitTest t (150);
try
{
@ -330,7 +330,9 @@ int main (int argc, char** argv)
Date r19 ("6/7/2010 00:59:59", "m/d/Y H:N:S");
t.notok (r17.sameHour (r19), "two dates not within the same hour");
// TODO Date::operator-
// Date::operator-
Date r22 (1234567890);
t.is ((r22 - 1).toEpoch (), 1234567889, "1234567890 - 1 = 1234567889");
}
catch (std::string& e)