MCPcopy Create free account
hub / github.com/AcademySoftwareFoundation/OpenColorIO / checkFloatsAreEqual

Function checkFloatsAreEqual

tests/cpu/MathUtils_tests.cpp:496–503  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

494}
495
496void checkFloatsAreEqual(const float ref, const bool compressDenorms, const float a)
497{
498 TEST_CHECK_MESSAGE(!OCIO::FloatsDiffer(ref, a, 0, compressDenorms),
499 getErrorMessageEqual(ref, a, compressDenorms) );
500
501 TEST_CHECK_MESSAGE(!OCIO::FloatsDiffer(a, ref, 0, compressDenorms),
502 getErrorMessageEqual(a, ref, compressDenorms) );
503}
504
505void checkFloatsAreEqual(const float ref, const bool compressDenorms,
506 const float a, const float b)

Callers 1

Calls 2

FloatsDifferFunction · 0.85
getErrorMessageEqualFunction · 0.85

Tested by

no test coverage detected