Skip to content

Commit 25fb405

Browse files
committed
reduce the error tolerance to match algebraic and fast-math operations
1 parent 348d67b commit 25fb405

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/pass/float.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,9 @@ macro_rules! assert_approx_eq {
3838
}};
3939

4040
($a:expr, $b: expr) => {
41-
// accept up to 64ULP (16ULP for host floats and 16ULP for miri artificial error and 32 for any rounding errors)
42-
assert_approx_eq!($a, $b, 64);
41+
// accept up to 12ULP (4ULP for host floats and 4ULP for miri artificial error and 4 for any additional effects
42+
// due to having multiple error sources.
43+
assert_approx_eq!($a, $b, 12);
4344
};
4445
}
4546

0 commit comments

Comments
 (0)