From: Gerd v. Egidy Date: Wed, 28 Jan 2009 01:39:07 +0000 (+0100) Subject: add ideas for unit-tests X-Git-Tag: v2.6~136^2~23 X-Git-Url: http://developer.intra2net.com/git/?a=commitdiff_plain;h=18e3f3137b6615fabeed71313180a8be2256d25f;p=libi2ncommon add ideas for unit-tests --- diff --git a/test/test_cron.cpp b/test/test_cron.cpp index cf6903d..67f15ad 100644 --- a/test/test_cron.cpp +++ b/test/test_cron.cpp @@ -146,6 +146,19 @@ public: CPPUNIT_ASSERT_EQUAL( 1233187200, static_cast(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);