template<class T>
Corrade::TestSuite::Compare::NotEqual class new in Git master

Pseudo-type for verifying that value is not equal to.

Prints both values if they are the same. Useful as an alternative to CORRADE_VERIFY(a != b) that can print the actual compared values instead of just saying that the expression failed. Compared type needs to implement at least an operator!=() (explicitly) convertible to bool. Example usage:

int a = , b = ;
CORRADE_COMPARE_AS(a, b, TestSuite::Compare::NotEqual);

Note that, for completeness, the failure diagnostic message prints both values. This might help uncover bugs in comparison operators or when a fuzzy comparison is implemented and the two values actually are different, but fall within the epsilon value.

See Comparing with pseudo-types for more information.