Closed susilehtola closed 1 year ago
According to the Catch2 documentation
We strongly recommend against using Approx when writing new code. You should be using floating point matchers instead.
The tests should accordingly use
WithinAbs(double target, double margin)
WithinRel(FloatingPoint target, FloatingPoint eps)
WithinULP(FloatingPoint target, uint64_t maxUlpDiff)
Interesting, I wasn't aware of this!
To avoid a ton of merge conflicts, this should be held off until after #27 is merged
Closed by #65
According to the Catch2 documentation
The tests should accordingly use
WithinAbs(double target, double margin)
,WithinRel(FloatingPoint target, FloatingPoint eps)
andWithinULP(FloatingPoint target, uint64_t maxUlpDiff)