From 67343fbc72cab89740af7a7fa93758b07c25955f Mon Sep 17 00:00:00 2001 From: Cameron Hart Date: Mon, 25 Mar 2024 23:14:39 +1300 Subject: [PATCH] Tune test epsilons --- tests/euler.rs | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/tests/euler.rs b/tests/euler.rs index 923a35d9..fa6ad2e6 100644 --- a/tests/euler.rs +++ b/tests/euler.rs @@ -36,15 +36,10 @@ trait EulerEpsilon { const E_EPS: f32; } impl EulerEpsilon for f32 { - const Q_EPS: f32 = 1e-5; - - // The scalar-math and wasm paths seems to use a particularly bad implementation of the trig functions - #[cfg(any(feature = "scalar-math", target_arch = "wasm32"))] + const Q_EPS: f32 = 1e-4; const E_EPS: f32 = 2e-4; - - #[cfg(not(any(feature = "scalar-math", target_arch = "wasm32")))] - const E_EPS: f32 = 1e-5; } + impl EulerEpsilon for f64 { const Q_EPS: f32 = 1e-8; const E_EPS: f32 = 1e-8;