only allow x87-specific result in j1f.rs test on x87

This commit is contained in:
Peter Michael Green
2022-01-04 20:38:09 +00:00
parent db80cfb906
commit 1606eeae5c
+2 -3
View File
@@ -371,8 +371,7 @@ mod tests {
fn test_y1f_2002() {
//allow slightly different result on x87
let res = y1f(2.0000002_f32);
if res != -0.10703231_f32 {
assert_eq!(res, -0.10703229_f32);
}
if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) && (res == -0.10703231_f32) { return };
assert_eq!(res, -0.10703229_f32);
}
}