diff options
author | James Cook <james@lindenlab.com> | 2010-01-05 13:02:06 -0800 |
---|---|---|
committer | James Cook <james@lindenlab.com> | 2010-01-05 13:02:06 -0800 |
commit | 68aa898f6cf3608fb8d3f35b5fdde633fb6eb061 (patch) | |
tree | d5177b5109ca8565be99ad74bf3261c8dac1590d /indra/newview | |
parent | b5f02c573799687b59e04fbd23cd730f5673f77b (diff) |
Better unit test for date math, works on PC but system problem on Mac/Linux
Diffstat (limited to 'indra/newview')
-rw-r--r-- | indra/newview/tests/lldateutil_test.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/indra/newview/tests/lldateutil_test.cpp b/indra/newview/tests/lldateutil_test.cpp index 142a5eb5e6..7ba82fbd2c 100644 --- a/indra/newview/tests/lldateutil_test.cpp +++ b/indra/newview/tests/lldateutil_test.cpp @@ -179,4 +179,14 @@ namespace tut LLDateUtil::ageFromDate("12/31/2009", mNow), "Joined today" ); } + + template<> template<> + void dateutil_object_t::test<5>() + { + set_test_name("2010 rollover"); + LLDate now(std::string("2010-01-04T12:00:00Z")); + ensure_equals("days", + LLDateUtil::ageFromDate("12/13/2009", now), + "3 weeks old" ); + } } |