Skip to content

Commit

Permalink
Fix inaccurate estimate
Browse files Browse the repository at this point in the history
  • Loading branch information
tgross35 committed Jul 16, 2024
1 parent a4f8436 commit 80c9b38
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 1 addition & 1 deletion src/etc/test-float-parse/src/gen/exhaustive.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ where
type WriteCtx = F;

fn total_tests() -> u64 {
F::Int::MAX.try_into().unwrap_or(u64::MAX)
F::Int::MAX.try_into().map_or(u64::MAX, |v: u64| v + 1)
}

fn new() -> Self {
Expand Down
2 changes: 0 additions & 2 deletions src/etc/test-float-parse/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ pub fn run(cfg: Config, include: &[String], exclude: &[String]) -> ExitCode {
rayon::ThreadPoolBuilder::new().num_threads(threads).build_global().unwrap();

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

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

println!("launching");
let elapsed = launch_tests(&mut tests, &cfg);
ui::finish(&tests, elapsed, &cfg)
}
Expand Down

0 comments on commit 80c9b38

Please sign in to comment.