Template Function mu::tiny::test::check_approx¶
Defined in File Shell.hpp
Function Documentation¶
-
template<typename T>
void mu::tiny::test::check_approx(T expected, T actual, T threshold, const char *text, const char *file, int_least32_t line)¶ Implementation helper for CHECK_APPROX.
All three operands share the same type
Tso mismatched-type calls produce a compiler diagnostic rather than silent promotion. Prefer the CHECK_APPROX macro.- Parameters:
expected – Expected value.
actual – Actual value.
threshold – Maximum allowed absolute difference.
text – Optional failure message.
file – Source file path.
line – Source line number.