template<class T>
Around class
Pseudo-type for verifying that value is in given bounds.
Contents
Prints both values if actual < expected - epsilon or expected + epsilon < actual. Compared type needs to implement at least an operator-(), operator+() and operator<(). Example usage:
float a; CORRADE_COMPARE_WITH(a, 9.28f, TestSuite::Compare::Around<float>{0.1f});
Constructors, destructors, conversion operators
- Around(T epsilon) explicit
- Constructor.
Function documentation
template<class T>
Corrade:: TestSuite:: Compare:: Around<T>:: Around(T epsilon) explicit
Constructor.
| Parameters | |
|---|---|
| epsilon | Epsilon value for comparison |