Fuzz tests for u128 modulo division

This commit is contained in:
Dr Maxim Orlovsky 2020-07-21 14:54:56 +02:00
parent 7588b211ff
commit 19f88212af
1 changed files with 1 additions and 0 deletions

View File

@ -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);