Skip to content

Commit 80c9b38

Browse files
committed
Fix inaccurate estimate
1 parent a4f8436 commit 80c9b38

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

Diff for: 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+
F::Int::MAX.try_into().map_or(u64::MAX, |v: u64| v + 1)
2323
}
2424

2525
fn new() -> Self {

Diff for: src/etc/test-float-parse/src/lib.rs

-2
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ pub fn run(cfg: Config, include: &[String], exclude: &[String]) -> ExitCode {
7575
rayon::ThreadPoolBuilder::new().num_threads(threads).build_global().unwrap();
7676

7777
let mut tests = register_tests(&cfg);
78-
println!("registered");
7978
let initial_tests: Vec<_> = tests.iter().map(|t| t.name.clone()).collect();
8079

8180
let unmatched: Vec<_> = include
@@ -104,7 +103,6 @@ pub fn run(cfg: Config, include: &[String], exclude: &[String]) -> ExitCode {
104103
println!("Skipping test '{exc}'");
105104
}
106105

107-
println!("launching");
108106
let elapsed = launch_tests(&mut tests, &cfg);
109107
ui::finish(&tests, elapsed, &cfg)
110108
}

0 commit comments

Comments
 (0)