We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a15eb7e + e83c8c1 commit 9c793e1Copy full SHA for 9c793e1
src/tools/miri/tests/pass/intrinsics-math.rs
@@ -125,9 +125,8 @@ pub fn main() {
125
126
assert_approx_eq!(5.0f32.gamma(), 24.0);
127
assert_approx_eq!(5.0f64.gamma(), 24.0);
128
- // These fail even on the host, precision seems to be terrible.
129
- //assert_approx_eq!(-0.5f32.gamma(), -2.0 * f32::consts::PI.sqrt());
130
- //assert_approx_eq!(-0.5f64.gamma(), -2.0 * f64::consts::PI.sqrt());
+ assert_approx_eq!((-0.5f32).gamma(), (-2.0) * f32::consts::PI.sqrt());
+ assert_approx_eq!((-0.5f64).gamma(), (-2.0) * f64::consts::PI.sqrt());
131
132
assert_eq!(2.0f32.ln_gamma(), (0.0, 1));
133
assert_eq!(2.0f64.ln_gamma(), (0.0, 1));
0 commit comments