From a00b3ecd58769fc0c9b3a21a09805541f962502a Mon Sep 17 00:00:00 2001 From: Mathilda Grace Date: Thu, 27 Jun 2024 15:18:31 -0400 Subject: [PATCH] Add FIXME related to NaN inputs to `float::Float::integer_decode` --- src/float.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/float.rs b/src/float.rs index bf4c05e..a4bd824 100644 --- a/src/float.rs +++ b/src/float.rs @@ -2466,6 +2466,8 @@ mod tests { test_integer_decode(sign_f * f32::MAX, (0xffffff, 104, sign)); test_integer_decode(sign_f * f32::INFINITY, (0x800000, 105, sign)); } + // FIXME: Unclear if we should be able to recover NaN inputs + // check(f32::NAN, (0xc00000, 105, 1)); } #[test] @@ -2488,6 +2490,8 @@ mod tests { test_integer_decode(sign_f * f64::MAX, (0x1fffffffffffff, 971, sign)); test_integer_decode(sign_f * f64::INFINITY, (0x10000000000000, 972, sign)); } + // FIXME: Unclear if we should be able to recover NaN inputs + // check(f64::NAN, (0x18000000000000, 972, 1)); } #[test]