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
This is actually an intended change, called out in the "breaking changes" part of the v2.0.1 release.
We removed default up-scaling of epsilon (the relative margin allowed) because it silently gave bad results for lowish numbers: ie, it accepted the above comparison even though -0.001 and 0.0 are not within 10% of each other.
In my test cases I sometimes even have the case that 1e-20 != Approx(0).
So after this change, what is the suggested way of writing in Catch2, if we want to assert that something is approximately zero?
Description
Regression v2.0.1 compare v1.9.7
Steps to reproduce
Extra information
Below test case fails on v2.0.1 passed in catch v1.9.7
The text was updated successfully, but these errors were encountered: