File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -200,8 +200,8 @@ mod tests {
200
200
fn test_partial_reduce64b ( ) {
201
201
// Test with various input values
202
202
assert_eq ! ( partial_reduce64b( 0 ) , 0 ) ;
203
- assert_eq ! ( partial_reduce64b( Q as i64 ) , partial_reduce64( Q as i64 ) ) ;
204
- assert_eq ! ( partial_reduce64b( - Q as i64 ) , partial_reduce64b( - Q as i64 ) ) ;
203
+ assert_eq ! ( partial_reduce64b( i64 :: from ( Q ) ) , partial_reduce64( i64 :: from ( Q ) ) ) ;
204
+ assert_eq ! ( partial_reduce64b( i64 :: from ( - Q ) ) , partial_reduce64b( i64 :: from ( - Q ) ) ) ;
205
205
206
206
// Test with large positive and negative values
207
207
let large_pos = i64:: MAX / 64 ;
@@ -210,7 +210,7 @@ mod tests {
210
210
assert ! ( partial_reduce64b( large_neg) . abs( ) < 2 * Q ) ;
211
211
212
212
// Test with some specific values
213
- assert_eq ! ( partial_reduce64b( 12345678 ) , partial_reduce64( 12345678 ) ) ;
214
- assert_eq ! ( partial_reduce64b( -12345678 ) , partial_reduce64( -12345678 ) ) ;
213
+ assert_eq ! ( partial_reduce64b( 12_345_678 ) , partial_reduce64( 12_345_678 ) ) ;
214
+ assert_eq ! ( partial_reduce64b( -12_345_678 ) , partial_reduce64( -12_345_678 ) ) ;
215
215
}
216
216
}
You can’t perform that action at this time.
0 commit comments