We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac40f31 commit 9a3cd79Copy full SHA for 9a3cd79
tests/casting.cpp
@@ -58,7 +58,7 @@ TEST_CASE("arby::Nat::from_float() with non-finite value throws std::domain_erro
58
59
TEST_CASE("arby::Nat::from_float() with value between 0 and 1") {
60
// NOTE: top range is the last float value > 1
61
- long double zero_ish = GENERATE(0.0L, std::nextafter(1.0L, 0.0L));
+ long double zero_ish = GENERATE(take(1000, random(0.0L, std::nextafter(1.0L, 0.0L))));
62
CAPTURE(zero_ish);
63
64
arby::Nat object = arby::Nat::from_float(zero_ish);
0 commit comments