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

Function test_acos_impl

tests/fl/math/fixed_point.cpp:687–691  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

685
686template<typename T>
687void test_acos_impl(float acos_max) {
688 FL_CHECK_CLOSE(T::acos(T(1.0f)).to_float(), 0.0f, acos_max);
689 FL_CHECK_CLOSE(T::acos(T(0.0f)).to_float(), 1.5708f, acos_max);
690 FL_CHECK_CLOSE(T::acos(T(0.5f)).to_float(), 1.0472f, acos_max);
691}
692
693template<typename T>
694void test_sqrt_impl(float sqrt_max) {

Callers

nothing calls this directly

Calls 3

acosFunction · 0.85
TEnum · 0.85
to_floatMethod · 0.45

Tested by

no test coverage detected