Skip to content

Commit ff6913b

Browse files
committed
Add FIXME related to NaN inputs
1 parent 012c0bc commit ff6913b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/float.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2465,6 +2465,8 @@ mod tests {
24652465
test_integer_decode(sign_f * f32::MAX, (0xffffff, 104, sign));
24662466
test_integer_decode(sign_f * f32::INFINITY, (0x800000, 105, sign));
24672467
}
2468+
// FIXME: Unclear if we should be able to recover NaN inputs
2469+
// check(f32::NAN, 0xc00000, 105, 1);
24682470
}
24692471

24702472
#[test]
@@ -2487,6 +2489,8 @@ mod tests {
24872489
test_integer_decode(sign_f * f64::MAX, (0x1fffffffffffff, 971, sign));
24882490
test_integer_decode(sign_f * f64::INFINITY, (0x10000000000000, 972, sign));
24892491
}
2492+
// FIXME: Unclear if we should be able to recover NaN inputs
2493+
// check(f64::NAN, 0x18000000000000, 972, 1);
24902494
}
24912495

24922496
#[test]

0 commit comments

Comments
 (0)