diff options
| author | richard <none@none> | 2010-01-06 13:37:30 -0800 |
|---|---|---|
| committer | richard <none@none> | 2010-01-06 13:37:30 -0800 |
| commit | 97427f2a8d99e25520cf5b59310c0b67407b34a3 (patch) | |
| tree | f7f26a6b2ac6a7f2aea233c64ed2f9a1ff3fd8b7 /indra/newview/tests | |
| parent | 49a744b676871db094d1608819a90fec02a6732d (diff) | |
| parent | a1e342b3f711c7ea23ac60b016c8b4024bf18a4a (diff) | |
merge
Diffstat (limited to 'indra/newview/tests')
| -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" ); + } } |
