If I have something like:
ASSERT_TRUE(RANGE(val1, val2, abs_err) || RANGE(val1, val3, abs_err));
How would I use ASSERT_NEAR
instead of ASSERT_TRUE
?
I've attempted to break up the statement into two ASSERT_NEAR
statements, like below, but the test fails.
ASSERT_NEAR(val1, val2, abs_err);
ASSERT_NEAR(val1, val3, abs_err);