Skip to content

Commit 9a3cd79

Browse files
committed
Amended test case to test a range of random values in range
1 parent ac40f31 commit 9a3cd79

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/casting.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ TEST_CASE("arby::Nat::from_float() with non-finite value throws std::domain_erro
5858

5959
TEST_CASE("arby::Nat::from_float() with value between 0 and 1") {
6060
// NOTE: top range is the last float value > 1
61-
long double zero_ish = GENERATE(0.0L, std::nextafter(1.0L, 0.0L));
61+
long double zero_ish = GENERATE(take(1000, random(0.0L, std::nextafter(1.0L, 0.0L))));
6262
CAPTURE(zero_ish);
6363

6464
arby::Nat object = arby::Nat::from_float(zero_ish);

0 commit comments

Comments
 (0)