You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
REQUIRE_THAT( 33.69006f, WithinULP(33.69f, 1) )
with expansion:
33.69006f is within 1 ULPs of 33.6899986267f
REQUIRE_THAT( 33.69006, WithinULP(33.69, 1) )
with expansion:
33.69006 is within 1 ULPs of 33.69
From my understanding the tests should also succeed with 2 ULPs but even 0 doesn't work.
Steps to reproduce
Add above two lines of code into Matchers.test.cpp "Floating point matchers" [float|double] tests cases and run SelfTest binary.
Sorry, I had a fundamental misunderstanding of what ULP means. I mistook "units in last place" for "the last decimal places".
Again, sorry for causing a stir... 😳
Description
These tests fail:
Output is:
From my understanding the tests should also succeed with 2 ULPs but even 0 doesn't work.
Steps to reproduce
Add above two lines of code into Matchers.test.cpp "Floating point matchers" [float|double] tests cases and run SelfTest binary.
Extra information
The text was updated successfully, but these errors were encountered: