MCPcopy Create free account
hub / github.com/FastLED/FastLED / check_near

Function check_near

tests/fl/math/fixed_point.cpp:342–344  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

340
341template <typename T>
342void check_near(T val, float expected, float tolerance) {
343 FL_CHECK_CLOSE(val.to_float(), expected, tolerance);
344}
345
346#define FP_TYPES fixed_point<4,12>, fixed_point<8,8>, fixed_point<8,24>, fixed_point<12,4>, fixed_point<16,16>, fixed_point<24,8>
347

Callers 1

FL_TEST_FILEFunction · 0.85

Calls 2

tolFunction · 0.85
to_floatMethod · 0.45

Tested by

no test coverage detected