Skip to content

Commit

Permalink
Add FIXME related to NaN inputs to
Browse files Browse the repository at this point in the history
`float::Float::integer_decode`
  • Loading branch information
mtilda committed Jun 27, 2024
1 parent f4967af commit a00b3ec
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 @@ -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]
Expand All @@ -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]
Expand Down

0 comments on commit a00b3ec

Please sign in to comment.