add more test values around i32 and i64 overflow
authorJacob Lifshay <programmerjake@gmail.com>
Thu, 3 Sep 2020 23:47:38 +0000 (16:47 -0700)
committerJacob Lifshay <programmerjake@gmail.com>
Thu, 3 Sep 2020 23:47:38 +0000 (16:47 -0700)
src/main.rs

index f6fd4ac1e1555bfeb70a896fa000feb8ea867cb7..15ee093ef8af538692ade04fe1a07bbe6a023cfb 100644 (file)
@@ -12,12 +12,16 @@ const TEST_VALUES: &[u64] = &[
     0x2,
     0xFFFF_FFFF_FFFF_FFFF,
     0xFFFF_FFFF_FFFF_FFFE,
+    0x7FFF_FFFF_FFFF_FFFE,
     0x7FFF_FFFF_FFFF_FFFF,
     0x8000_0000_0000_0000,
+    0x8000_0000_0000_0001,
     0x1234_5678_0000_0000,
+    0x1234_5678_7FFF_FFFE,
+    0x1234_5678_7FFF_FFFF,
     0x1234_5678_8000_0000,
+    0x1234_5678_8000_0001,
     0x1234_5678_FFFF_FFFF,
-    0x1234_5678_7FFF_FFFF,
 ];
 
 const BOOL_VALUES: &[bool] = &[false, true];