catch2/projects/SelfTest/UsageTests
Martin Hořeňovský d2d418a9cb
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
2019-10-13 11:56:50 +02:00
..
Approx.tests.cpp Add test for INF == Approx(1) 2019-10-04 14:19:39 +02:00
BDD.tests.cpp Add test for AND_GIVEN and update the baselines 2018-09-02 16:53:57 +02:00
Benchmark.tests.cpp Add an extra test for benchmarking macros 2019-06-06 21:29:25 +02:00
Class.tests.cpp tests for TEMPLATE_LIST_TEST_CASE 2019-06-15 15:40:39 +02:00
Compilation.tests.cpp Small cleanup of self tests 2019-08-04 13:50:25 +02:00
Condition.tests.cpp Enable Werror for dev builds 2017-11-21 18:55:28 +01:00
Decomposition.tests.cpp Add -Wmissing-declarations to the SelfTest project 2018-07-02 17:36:13 +02:00
EnumToString.tests.cpp Removed redundant ; 2019-04-27 18:50:05 +01:00
Exception.tests.cpp Suppress Wunreachable-code in floating matchers and exception tests 2018-09-01 22:34:29 +02:00
Generators.tests.cpp Add a from_range(Container) overload to the generator helpers 2019-10-09 14:51:36 +02:00
Matchers.tests.cpp Add a Relative Comparison matcher for floating point numbers 2019-10-13 11:56:50 +02:00
Message.tests.cpp Allow quotes in CAPTURE arguments (#1608) 2019-05-01 19:12:44 +02:00
Misc.tests.cpp Allow to use non-copyable and non-movable types in TEMPLATE_LIST_TEST_CASE 2019-09-06 12:15:09 +02:00
ToStringByte.tests.cpp Add std::byte stringification support (#1686) 2019-07-13 14:47:56 +02:00
ToStringChrono.tests.cpp Add more weird chrono::duration stringification tests 2017-11-28 21:47:06 +01:00
ToStringGeneral.tests.cpp Refactor custom precision in floating point stringification 2019-05-03 15:38:06 +02:00
ToStringOptional.tests.cpp Add to string for std::optional 2019-01-31 15:35:13 +01:00
ToStringPair.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringTuple.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00
ToStringVariant.tests.cpp Remove unused type from tests 2019-01-27 00:03:11 +01:00
ToStringVector.tests.cpp Fixup various spelling errors (#1208) 2018-03-07 10:08:35 +01:00
ToStringWhich.tests.cpp Add -Wmissing-declarations to the SelfTest project 2018-07-02 17:36:13 +02:00
Tricky.tests.cpp Small cleanup of self tests 2019-08-04 13:50:25 +02:00
VariadicMacros.tests.cpp All tests files have .tests.cpp suffix. Also moved tests out of TestMain.cpp and moved up a level 2017-11-13 16:03:27 +00:00