- added worded dates "later" and "someday" to enable the hiding of
  a task until doomsday.
This commit is contained in:
Federico Hernandez 2011-01-18 02:21:00 +01:00
parent be0357da4a
commit 0cac03ad4a
5 changed files with 27 additions and 2 deletions

View file

@ -34,7 +34,7 @@ Context context;
////////////////////////////////////////////////////////////////////////////////
int main (int argc, char** argv)
{
UnitTest t (162);
UnitTest t (165);
try
{
@ -336,6 +336,11 @@ int main (int argc, char** argv)
Date r16 ("soy");
t.notok (r16.sameYear (now), "soy not in same year as now");
Date later ("later");
t.is (later.month (), 1, "later -> m = 1");
t.is (later.day (), 18, "later -> d = 18");
t.is (later.year (), 2038, "later -> y = 2038");
// Date::sameHour
Date r17 ("6/7/2010 01:00:00", "m/d/Y H:N:S");
Date r18 ("6/7/2010 01:59:59", "m/d/Y H:N:S");