Added tests for the `is_below_target()` function.
This commit is contained in:
parent
17f2df7d9d
commit
fd6daaf02f
|
@ -74,3 +74,16 @@ TEST(test_load, LowThreshValid)
|
||||||
CHECK_TRUE(result);
|
CHECK_TRUE(result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TEST(test_load, BelowTargetValid)
|
||||||
|
{
|
||||||
|
bool result = is_below_target(HYSTERESIS - 1);
|
||||||
|
CHECK_TRUE(result);
|
||||||
|
|
||||||
|
result = is_below_target(HYSTERESIS);
|
||||||
|
CHECK_FALSE(result);
|
||||||
|
|
||||||
|
result = is_below_target(HYSTERESIS + 1);
|
||||||
|
CHECK_FALSE(result);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue