-
Notifications
You must be signed in to change notification settings - Fork 0
Tests fail for i32 when value is -1 #2
Copy link
Copy link
Open
Description
Hi! I'm currently working on integrating this with https://github.com/archSeer/enigma/
Tests seem to fail on debug_assert!(b.tag() == u32::from(tag), "{} == {}", b.tag(), tag);, because tag() returns 15. I added this quickcheck test to the test suite that seems to always reproduce it:
fn nanbox_i32(tag: u8, v: i32) -> TestResult {
if tag == 0 || tag >= 8 {
return TestResult::discard();
}
unsafe {
TestResult::from_bool(NanBox::new(tag, v).tag() == tag as u32)
}
}I'm currently looking into this -- it seems like one of the bit shifts might be off
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels