diff options
author | Leyla Farazha <leyla@lindenlab.com> | 2010-01-05 15:57:09 -0800 |
---|---|---|
committer | Leyla Farazha <leyla@lindenlab.com> | 2010-01-05 15:57:09 -0800 |
commit | ab3dbd647e78cff67ce7ffe85bb6fbc5c5461312 (patch) | |
tree | c173a561457b6fb0195194cb21fa0d24c15e9589 /indra/newview/tests/lldateutil_test.cpp | |
parent | db6069e249b509e1551a76f438d795cbb9f992fa (diff) | |
parent | cffe23df08bb0066c936efe667f60e90e0f89fd0 (diff) |
Merge
Diffstat (limited to 'indra/newview/tests/lldateutil_test.cpp')
-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" ); + } } |