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 5596f88 commit 6e6049bCopy full SHA for 6e6049b
library/std/tests/floats/f32.rs
@@ -196,7 +196,7 @@ fn test_gamma() {
196
assert_approx_eq!(1.0f32.gamma(), 1.0f32);
197
assert_approx_eq!(2.0f32.gamma(), 1.0f32);
198
assert_approx_eq!(3.0f32.gamma(), 2.0f32);
199
- assert_approx_eq!(4.0f32.gamma(), 6.0f32);
+ assert_approx_eq!(4.0f32.gamma(), 6.0f32, APPROX_DELTA);
200
assert_approx_eq!(5.0f32.gamma(), 24.0f32, APPROX_DELTA);
201
assert_approx_eq!(0.5f32.gamma(), consts::PI.sqrt());
202
assert_approx_eq!((-0.5f32).gamma(), -2.0 * consts::PI.sqrt());
0 commit comments