Skip to content

Commit

Permalink
Add FIXME related to NaN inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mtilda committed Jun 27, 2024
1 parent 012c0bc commit ff6913b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2465,6 +2465,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]
Expand All @@ -2487,6 +2489,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]
Expand Down

0 comments on commit ff6913b

Please sign in to comment.