@@ -1913,8 +1913,9 @@ static TEST_CASES: &[((i128,), u64)] = &[
1913
1913
fn floattidf() {
1914
1914
for &((a,), b) in TEST_CASES {
1915
1915
let b_ = __floattidf(a);
1916
- let diff = if to_u64(b_) > b { to_u64(b_) - b } else { b - to_u64(b_) };
1917
- assert_eq!(((a,), b, true), ((a,), b, diff <= 1));
1916
+ let g_b = to_u64(b_);
1917
+ let diff = if g_b > b { g_b - b } else { b - g_b };
1918
+ assert_eq!(((a,), b, g_b, true), ((a,), b, g_b, diff <= 1));
1918
1919
}
1919
1920
}
1920
1921
"
@@ -2245,8 +2246,9 @@ static TEST_CASES: &[((u128,), u64)] = &[
2245
2246
fn floatuntidf() {
2246
2247
for &((a,), b) in TEST_CASES {
2247
2248
let b_ = __floatuntidf(a);
2248
- let diff = if to_u64(b_) > b { to_u64(b_) - b } else { b - to_u64(b_) };
2249
- assert_eq!(((a,), b, true), ((a,), b, diff <= 1));
2249
+ let g_b = to_u64(b_);
2250
+ let diff = if g_b > b { g_b - b } else { b - g_b };
2251
+ assert_eq!(((a,), b, g_b, true), ((a,), b, g_b, diff <= 1));
2250
2252
}
2251
2253
}
2252
2254
"
0 commit comments