Macro

ASSERT_NE_APPROX

Check two floating point numbers to determine if XY with the specified tolerance.

Since v1.0
#define ASSERT_NE_APPROX(
X, Y, T, ...)

Parameters 🔗

X in

Floating point number.

Y in

Floating point number to compare against X.

T in

Tolerance.

... in

Optional message.

Discussion 🔗

If X ≈ Y with error < T, the test case is aborted.