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

Function test_asin_impl

tests/fl/math/fixed_point.cpp:680–684  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

678
679template<typename T>
680void test_asin_impl(float asin_max) {
681 FL_CHECK_CLOSE(T::asin(T(0.0f)).to_float(), 0.0f, asin_max);
682 FL_CHECK_CLOSE(T::asin(T(1.0f)).to_float(), 1.5708f, asin_max);
683 FL_CHECK_CLOSE(T::asin(T(0.5f)).to_float(), 0.5236f, asin_max);
684}
685
686template<typename T>
687void test_acos_impl(float acos_max) {

Callers

nothing calls this directly

Calls 3

asinFunction · 0.85
TEnum · 0.85
to_floatMethod · 0.45

Tested by

no test coverage detected