Skip to content

Commit

Permalink
Fix: MSRV cannot be compiled
Browse files Browse the repository at this point in the history
  • Loading branch information
JamboChen committed Oct 9, 2024
1 parent 6c932dc commit dce3073
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions rand_distr/tests/cdf.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,14 @@ fn poisson() {
1.0 - lambda.inc_gamma(k as f64 + 1.0)
}

let parameters = [0.5, 1.0, 7.5, 32.0, 100.0];
let parameters = [
0.1_f32, 1.0, 7.5,
// 1.844E+19, // fail case
];

for (seed, lambda) in parameters.into_iter().enumerate() {
let dist = rand_distr::Poisson::new(lambda).unwrap();
// test_discrete::<u64>(seed as u64, dist, |k| cdf(k, lambda));
test_discrete(seed as u64, dist, |k| cdf(k, lambda as f64));
}
}

Expand Down

0 comments on commit dce3073

Please sign in to comment.