git://developer.intra2net.com
/
libi2ncommon
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
882ecfd
)
add ideas for unit-tests
author
Gerd v. Egidy
<gerd.von.egidy@intra2net.com>
Wed, 28 Jan 2009 01:39:07 +0000 (
02:39
+0100)
committer
Gerd v. Egidy
<gerd.von.egidy@intra2net.com>
Wed, 28 Jan 2009 01:39:07 +0000 (
02:39
+0100)
test/test_cron.cpp
patch
|
blob
|
blame
|
history
diff --git
a/test/test_cron.cpp
b/test/test_cron.cpp
index
cf6903d
..
67f15ad
100644
(file)
--- a/
test/test_cron.cpp
+++ b/
test/test_cron.cpp
@@
-146,6
+146,19
@@
public:
CPPUNIT_ASSERT_EQUAL( 1233187200, static_cast<int>(cron.get_next_run(1233100800)));
}
+ // TODO: Tom, add some evil tests here, im done here for yesterday ;)
+ // ideas:
+ // - daylightsaving on
+ // - start, end
+ // - interval in between
+ // - at the end of dst-day
+ // - daylightsaving off
+ // - start, end
+ // - interval in between
+ // - at the end of dst-day
+ // - year-turn (does our old mktime this correctly?)
+ // - feb 29
+
};
CPPUNIT_TEST_SUITE_REGISTRATION(TestCronFunc);