Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/projects/SelfTest/UsageTests/ToStringByte.tests.cpp
diff options
context:
space:
mode:
authorMartin Hořeňovský2019-10-13 11:56:50 +0200
committerMartin Hořeňovský2019-10-13 11:56:50 +0200
commitd2d418a9cbda255e193c4ed6c57cdf20137fa309 (patch)
treeedafb3402155788938bb241c6d54859bc8dd8bac /projects/SelfTest/UsageTests/ToStringByte.tests.cpp
parentc8db4e77c4c9aa20776db162e982f1af693ab8fe (diff)
downloadcatch3-d2d418a9cbda255e193c4ed6c57cdf20137fa309.tar.gz
Add a Relative Comparison matcher for floating point numbers
It checks Knuth's _close enough with tolerance_ relationship, that is `|lhs - rhs| <= epsilon * max(|lhs|, |rhs|)`, rather then the _very close with tolerance_ relationship that can be written down as `|lhs - rhs| <= epsilon * min(|lhs|, |rhs|)`. This is because it is the more common model around the internet, and as such is likely to be less surprising to the users. In the future we might want to provide the other model as well. Closes #1746
Diffstat (limited to 'projects/SelfTest/UsageTests/ToStringByte.tests.cpp')
0 files changed, 0 insertions, 0 deletions