Fuzz tests for u128 modulo division
This commit is contained in:
parent
7588b211ff
commit
19f88212af
|
@ -40,6 +40,7 @@ fn do_test(data: &[u8]) {
|
||||||
check_eq!(a_native.wrapping_sub(b_native), a - b);
|
check_eq!(a_native.wrapping_sub(b_native), a - b);
|
||||||
if b_native != 0 {
|
if b_native != 0 {
|
||||||
check_eq!(a_native.wrapping_div(b_native), a / b);
|
check_eq!(a_native.wrapping_div(b_native), a / b);
|
||||||
|
check_eq!(a_native.wrapping_rem(b_native), a % b);
|
||||||
}
|
}
|
||||||
check_eq!(a_native.wrapping_mul(b_native), a * b);
|
check_eq!(a_native.wrapping_mul(b_native), a * b);
|
||||||
check_eq!(a_native & b_native, a & b);
|
check_eq!(a_native & b_native, a & b);
|
||||||
|
|
Loading…
Reference in New Issue