From 0f52ff8ddf9f1e54844e2711fdb5e3bd1818c630 Mon Sep 17 00:00:00 2001 From: Speedy_Lex Date: Mon, 3 Mar 2025 16:01:35 +0100 Subject: [PATCH] fix total test count for exhaustive float tests --- src/etc/test-float-parse/src/gen/exhaustive.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/test-float-parse/src/gen/exhaustive.rs b/src/etc/test-float-parse/src/gen/exhaustive.rs index 5d4b6df8e59b9..031f2a77f1e14 100644 --- a/src/etc/test-float-parse/src/gen/exhaustive.rs +++ b/src/etc/test-float-parse/src/gen/exhaustive.rs @@ -19,7 +19,7 @@ where type WriteCtx = F; fn total_tests() -> u64 { - F::Int::MAX.try_into().unwrap_or(u64::MAX) + 2u64.saturating_pow(F::Int::BITS) } fn new() -> Self {