Skip to content

Commit

Permalink
Lower required precision for Cauchy stability test
Browse files Browse the repository at this point in the history
  • Loading branch information
dhardy committed Dec 10, 2020
1 parent ec0bf60 commit a08fc54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rand_distr/src/cauchy.rs
Expand Up @@ -160,7 +160,7 @@ mod test {
let expected = [15.023088, -5.446413, 3.7092876, 3.112482];
for (a, b) in buf.iter().zip(expected.iter()) {
let (a, b) = (*a, *b);
assert!((a - b).abs() < 1e-6, "expected: {} = {}", a, b);
assert!((a - b).abs() < 1e-5, "expected: {} = {}", a, b);
}
}
}

0 comments on commit a08fc54

Please sign in to comment.