martinmoene / lest

A modern, C++11-native, single-file header-only, tiny framework for unit-tests, TDD and BDD (includes C++98 variant)
Boost Software License 1.0
390 stars 45 forks source link

Update Approx implementation as mentioned by Richard Harris #17

Closed martinmoene closed 8 years ago

martinmoene commented 9 years ago

Richard Harris (on mailing list accu-general, 10-Oct-2015):

p.s. I chanced upon your noting on your catch forum that I'm now using min rather than max in floating point similarity comparisons on thusspakeak. I changed my mind about which was the appropriate choice since

a) it's arbitrary b) finite vs. infinite yields infinity rather than NaN which, to my taste, is cleaner

Catch forum entries on Approx.

martinmoene commented 8 years ago

Done