Skip to content

Commit 0f52ff8

Browse files
committed
fix total test count for exhaustive float tests
1 parent 81d8edc commit 0f52ff8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/etc/test-float-parse/src/gen/exhaustive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ where
1919
type WriteCtx = F;
2020

2121
fn total_tests() -> u64 {
22-
F::Int::MAX.try_into().unwrap_or(u64::MAX)
22+
2u64.saturating_pow(F::Int::BITS)
2323
}
2424

2525
fn new() -> Self {

0 commit comments

Comments
 (0)