Skip to content

Commit a00b3ec

Browse files
committed
Add FIXME related to NaN inputs to
`float::Float::integer_decode`
1 parent f4967af commit a00b3ec

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: src/float.rs

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

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

24932497
#[test]

0 commit comments

Comments
 (0)