From a08fc541ffceb63a64c950c5ce205bd7f31ada90 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Thu, 10 Dec 2020 12:30:57 +0000 Subject: [PATCH] Lower required precision for Cauchy stability test --- rand_distr/src/cauchy.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rand_distr/src/cauchy.rs b/rand_distr/src/cauchy.rs index ffe86d00a9b..1fadf0c6f61 100644 --- a/rand_distr/src/cauchy.rs +++ b/rand_distr/src/cauchy.rs @@ -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); } } }