mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Feature #638
- added worded dates "later" and "someday" to enable the hiding of a task until doomsday.
This commit is contained in:
parent
be0357da4a
commit
0cac03ad4a
5 changed files with 27 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue