only allow x87-specific result in j1f.rs test on x87
This commit is contained in:
parent
e3c3304557
commit
94b416e496
1 changed files with 2 additions and 3 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue