From 27fe2694fc9144b4d400075f596a4c5637ab945c Mon Sep 17 00:00:00 2001 From: Jacob Lifshay Date: Thu, 3 Sep 2020 16:47:38 -0700 Subject: [PATCH] add more test values around i32 and i64 overflow --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index f6fd4ac..15ee093 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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]; -- 2.30.2