From 25b355eb38490ab56aa52b9c39c28c64421e2ced Mon Sep 17 00:00:00 2001 From: ayazhafiz Date: Sat, 19 Feb 2022 16:24:49 -0500 Subject: [PATCH] Fix cast tests --- compiler/test_gen/src/gen_num.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/test_gen/src/gen_num.rs b/compiler/test_gen/src/gen_num.rs index c985e69dc9..4ddee0bd19 100644 --- a/compiler/test_gen/src/gen_num.rs +++ b/compiler/test_gen/src/gen_num.rs @@ -2101,19 +2101,19 @@ to_int_tests! { to_u16_same_width, "15i16", 15 to_u16_extend, "15i8", 15 to_u16_truncate, "115i32", 115 - to_u16_truncate_wraps, "60000i32", 10 + to_u16_truncate_wraps, "600000000i32", 17920 ) "Num.toU32", u32, ( to_u32_same_width, "15i32", 15 to_u32_extend, "15i8", 15 to_u32_truncate, "115i64", 115 - to_u32_truncate_wraps, "5000000000i64", 10 + to_u32_truncate_wraps, "5000000000000000000i64", 1156841472 ) "Num.toU64", u64, ( to_u64_same_width, "15i64", 15 to_u64_extend, "15i8", 15 to_u64_truncate, "115i128", 115 - to_u64_truncate_wraps, "10_000_000_000_000_000_000i128", 10 + to_u64_truncate_wraps, "10_000_000_000_000_000_000_000i128", 1864712049423024128 ) "Num.toU128", u128, ( to_u128_same_width, "15i128", 15