Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit b33d482

Browse files
committed
Update xfails
1 parent ff1927e commit b33d482

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

crates/libm-test/src/xfail.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,7 @@ impl IgnoreCase<(i32, f32)> for XFail {
142142
match &ctx.basis {
143143
CheckBasis::Musl => false,
144144
CheckBasis::MultiPrecision => match ctx.fname {
145+
_ if input.1.is_nan() && all_nan(&[actual, expected]) => true,
145146
// We return +0.0, MPFR returns -0.0
146147
"jnf" => input.1 == f32::NEG_INFINITY && actual == F::ZERO && expected == F::ZERO,
147148
_ => false,
@@ -155,6 +156,7 @@ impl IgnoreCase<(i32, f64)> for XFail {
155156
match &ctx.basis {
156157
CheckBasis::Musl => false,
157158
CheckBasis::MultiPrecision => match ctx.fname {
159+
_ if input.1.is_nan() && all_nan(&[actual, expected]) => true,
158160
"jn" => input.1 == f64::NEG_INFINITY && actual == F::ZERO && expected == F::ZERO,
159161
_ => false,
160162
},

0 commit comments

Comments
 (0)