mirror of
https://github.com/catchorg/Catch2.git
synced 2024-12-23 11:43:29 +01:00
Use the right overload of std::nextafter in tests
This commit is contained in:
parent
d2d418a9cb
commit
28663fb959
@ -348,7 +348,7 @@ namespace { namespace MatchersTests {
|
|||||||
auto v1 = std::numeric_limits<float>::min();
|
auto v1 = std::numeric_limits<float>::min();
|
||||||
auto v2 = v1;
|
auto v2 = v1;
|
||||||
for (int i = 0; i < 5; ++i) {
|
for (int i = 0; i < 5; ++i) {
|
||||||
v2 = std::nextafter(v1, 0);
|
v2 = std::nextafter(v1, 0.f);
|
||||||
}
|
}
|
||||||
REQUIRE_THAT(v1, WithinRel(v2));
|
REQUIRE_THAT(v1, WithinRel(v2));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user