Bump sample count to get test passing.
This commit is contained in:
parent
92627630d3
commit
a01cbb36ab
|
@ -41,7 +41,7 @@ mod tests {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn test_range_average() {
|
fn test_range_average() {
|
||||||
let num_op = 1000;
|
let num_op = 10000;
|
||||||
let mut rng = StdRng::seed_from_u64(1000);
|
let mut rng = StdRng::seed_from_u64(1000);
|
||||||
let xs: Vec<usize> = (0..num_op).map(|_| rng.random_range(5, 10)).collect();
|
let xs: Vec<usize> = (0..num_op).map(|_| rng.random_range(5, 10)).collect();
|
||||||
let mean = xs.iter().sum::<usize>() / num_op;
|
let mean = xs.iter().sum::<usize>() / num_op;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user