From 18e3f3137b6615fabeed71313180a8be2256d25f Mon Sep 17 00:00:00 2001 From: Gerd v. Egidy Date: Wed, 28 Jan 2009 02:39:07 +0100 Subject: [PATCH] add ideas for unit-tests --- test/test_cron.cpp | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) 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); -- 1.7.1