might as well tell people what I am doing
This commit is contained in:
+4
-1
@@ -33,16 +33,19 @@ void test_check_timeout()
|
|||||||
{
|
{
|
||||||
bool res;
|
bool res;
|
||||||
startTime = 11;
|
startTime = 11;
|
||||||
|
|
||||||
|
//above limit
|
||||||
Param::SetInt(Param::test_time, 14 * 60);
|
Param::SetInt(Param::test_time, 14 * 60);
|
||||||
Param::SetInt(Param::timelim, 13);
|
Param::SetInt(Param::timelim, 13);
|
||||||
|
|
||||||
res = CheckTimeout();
|
res = CheckTimeout();
|
||||||
assert(res);
|
assert(res);
|
||||||
|
|
||||||
|
//below limit
|
||||||
Param::SetInt(Param::test_time, 12 * 60);
|
Param::SetInt(Param::test_time, 12 * 60);
|
||||||
res = CheckTimeout();
|
res = CheckTimeout();
|
||||||
assert(!res);
|
assert(!res);
|
||||||
|
|
||||||
|
//start time changes result
|
||||||
startTime = 1100;
|
startTime = 1100;
|
||||||
res = CheckTimeout();
|
res = CheckTimeout();
|
||||||
assert(res);
|
assert(res);
|
||||||
|
|||||||
Reference in New Issue
Block a user