Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 53944e5

Browse files
committedMar 11, 2025
Relax f32 thresholds.
1 parent 0151a01 commit 53944e5

File tree

1 file changed

+4
-4
lines changed
  • library/std/tests/floats

1 file changed

+4
-4
lines changed
 

‎library/std/tests/floats/f32.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -921,9 +921,9 @@ fn test_algebraic() {
921921
let a: f32 = 123.0;
922922
let b: f32 = 456.0;
923923

924-
assert_approx_eq!(a.algebraic_add(b), a + b, 1e-3);
925-
assert_approx_eq!(a.algebraic_sub(b), a - b, 1e-3);
924+
assert_approx_eq!(a.algebraic_add(b), a + b, 1e-2);
925+
assert_approx_eq!(a.algebraic_sub(b), a - b, 1e-2);
926926
assert_approx_eq!(a.algebraic_mul(b), a * b, 1e-1);
927-
assert_approx_eq!(a.algebraic_div(b), a / b, 1e-6);
928-
assert_approx_eq!(a.algebraic_rem(b), a % b, 1e-3);
927+
assert_approx_eq!(a.algebraic_div(b), a / b, 1e-5);
928+
assert_approx_eq!(a.algebraic_rem(b), a % b, 1e-2);
929929
}

0 commit comments

Comments
 (0)
Failed to load comments.