template<class T>
LessOrEqual class
Pseudo-type for verifying that value is less than or equal to 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, TestSuite::Compare::LessOrEqual);
See Comparing with pseudo-types for more information.