Replace localtime() with thread safe localtime_r()
[libi2ncommon] / test / test_timefunc.cpp
index 4a2a04e..f4bc4f2 100644 (file)
@@ -442,4 +442,11 @@ BOOST_AUTO_TEST_CASE(WeekDisplayString13)
     BOOST_CHECK_EQUAL(string("Mon-Wed"), week.get_displaystring());
 }
 
+BOOST_AUTO_TEST_CASE(FormatFullTime)
+{
+    time_t seconds = 1318844005;
+
+    BOOST_CHECK_EQUAL("17.10.2011 11:33", format_full_time(seconds));
+}
+
 BOOST_AUTO_TEST_SUITE_END()