template<class T>
Corrade::TestSuite::Compare::LessOrEqual class

Pseudo-type for verifying that value is less than expected.

Prints both values if the first is not less than the second. Compared type needs to implement at least an operator<=() (explicitly) convertible to bool. Example usage:

float a;
CORRADE_COMPARE_AS(a, 9.28f, Compare::LessOrEqual);

See Comparing with pseudo-types for more information.