diff --git a/test/test_logic.h b/test/test_logic.h index 20d2c43..77e7a4b 100644 --- a/test/test_logic.h +++ b/test/test_logic.h @@ -33,16 +33,19 @@ void test_check_timeout() { bool res; startTime = 11; + + //above limit Param::SetInt(Param::test_time, 14 * 60); Param::SetInt(Param::timelim, 13); - res = CheckTimeout(); assert(res); + //below limit Param::SetInt(Param::test_time, 12 * 60); res = CheckTimeout(); assert(!res); + //start time changes result startTime = 1100; res = CheckTimeout(); assert(res);