We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 64a99db commit cfba491Copy full SHA for cfba491
library/std/tests/floats/f32.rs
@@ -79,8 +79,8 @@ fn test_log() {
79
let nan: f32 = f32::NAN;
80
let inf: f32 = f32::INFINITY;
81
let neg_inf: f32 = f32::NEG_INFINITY;
82
- assert_approx_eq!(10.0f32.log(10.0), 1.0);
83
- assert_approx_eq!(2.3f32.log(3.5), 0.664858);
+ assert_approx_eq!(10.0f32.log(10.0), 1.0, APPROX_DELTA);
+ assert_approx_eq!(2.3f32.log(3.5), 0.664858, APPROX_DELTA);
84
assert_approx_eq!(1.0f32.exp().log(1.0f32.exp()), 1.0, APPROX_DELTA);
85
assert!(1.0f32.log(1.0).is_nan());
86
assert!(1.0f32.log(-13.9).is_nan());
0 commit comments