VerifyLessEqual
bool VerifyLessEqual(T actual, T expected)Description
Verifies that actual is less than or equal to expected (actual <= expected).
Logs a PASS message if the condition holds, a FAIL message otherwise.
Both arguments must be of compatible numeric types.
Parameters
- actual - The value being tested (uint8_t, int8, int or float).
- expected - The upper bound to compare against.
Returns
true if actual <= expected, false otherwise.
Example
void main()
{
VerifyLessEqual(5, 5); // PASS
VerifyLessEqual(4, 5); // PASS
VerifyLessEqual(6, 5); // FAIL
}