Macro

ASSERT_EQ_APPROX

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

Since v1.0
#define ASSERT_EQ_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 XY, the test case is aborted.