Skip to content

Commit 6e6049b

Browse files
make a f32::gamma test pass
1 parent 5596f88 commit 6e6049b

File tree

1 file changed

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

1 file changed

+1
-1
lines changed

library/std/tests/floats/f32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fn test_gamma() {
196196
assert_approx_eq!(1.0f32.gamma(), 1.0f32);
197197
assert_approx_eq!(2.0f32.gamma(), 1.0f32);
198198
assert_approx_eq!(3.0f32.gamma(), 2.0f32);
199-
assert_approx_eq!(4.0f32.gamma(), 6.0f32);
199+
assert_approx_eq!(4.0f32.gamma(), 6.0f32, APPROX_DELTA);
200200
assert_approx_eq!(5.0f32.gamma(), 24.0f32, APPROX_DELTA);
201201
assert_approx_eq!(0.5f32.gamma(), consts::PI.sqrt());
202202
assert_approx_eq!((-0.5f32).gamma(), -2.0 * consts::PI.sqrt());

0 commit comments

Comments
 (0)