git://developer.intra2net.com
/
libi2ncommon
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
Replace localtime() with thread safe localtime_r()
[libi2ncommon]
/
test
/
test_timefunc.cpp
diff --git
a/test/test_timefunc.cpp
b/test/test_timefunc.cpp
index
4a2a04e
..
f4bc4f2
100644
(file)
--- a/
test/test_timefunc.cpp
+++ b/
test/test_timefunc.cpp
@@
-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()