diff options
| author | Martin Hořeňovský | 2019-10-05 13:23:14 +0200 |
|---|---|---|
| committer | Martin Hořeňovský | 2019-10-05 13:38:22 +0200 |
| commit | c38a5caa2ebf0738e468f419c4d3ed857001cfb0 (patch) | |
| tree | fef36a4eae6c503c1f07cd4c37b58c52fc6ee507 /projects/SelfTest/UsageTests/Matchers.tests.cpp | |
| parent | ebc5609484b357c3a047aa8418ef5dd320209239 (diff) | |
| download | catch3-c38a5caa2ebf0738e468f419c4d3ed857001cfb0.tar.gz | |
Allow full range of target ULP values for the ULPMatcher
Previously it was limited to roughly 2 billion ULPs, rather than
the roughly 2^64 possible ones.
Diffstat (limited to 'projects/SelfTest/UsageTests/Matchers.tests.cpp')
| -rw-r--r-- | projects/SelfTest/UsageTests/Matchers.tests.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/projects/SelfTest/UsageTests/Matchers.tests.cpp b/projects/SelfTest/UsageTests/Matchers.tests.cpp index 6f9c3cb4..8e9148b3 100644 --- a/projects/SelfTest/UsageTests/Matchers.tests.cpp +++ b/projects/SelfTest/UsageTests/Matchers.tests.cpp @@ -372,7 +372,7 @@ namespace { namespace MatchersTests { REQUIRE_THROWS_AS(WithinAbs(1.f, -1.f), std::domain_error); REQUIRE_NOTHROW(WithinULP(1.f, 0)); - REQUIRE_THROWS_AS(WithinULP(1.f, -1), std::domain_error); + REQUIRE_THROWS_AS(WithinULP(1.f, static_cast<uint64_t>(-1)), std::domain_error); } } @@ -408,7 +408,6 @@ namespace { namespace MatchersTests { REQUIRE_THROWS_AS(WithinAbs(1., -1.), std::domain_error); REQUIRE_NOTHROW(WithinULP(1., 0)); - REQUIRE_THROWS_AS(WithinULP(1., -1), std::domain_error); } } |