Skip to content

Commit 254ccd0

Browse files
author
Andronik Ordian
committed
uint: remove quickcheck for div_mod (no longer relevant)
1 parent 30d89bd commit 254ccd0

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

uint/tests/uint_tests.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1201,18 +1201,6 @@ pub mod laws {
12011201
}
12021202
}
12031203

1204-
quickcheck! {
1205-
fn div_mod_by_knuth_matches_long_div(x: $uint_ty, y: $uint_ty) -> TestResult {
1206-
if y.is_zero() {
1207-
return TestResult::discard();
1208-
}
1209-
1210-
TestResult::from_bool(
1211-
(x / y, x % y) == x.div_mod(y)
1212-
)
1213-
}
1214-
}
1215-
12161204
quickcheck! {
12171205
fn rem_decreases_divisor(x: $uint_ty, y: $uint_ty) -> TestResult {
12181206
if y.is_zero() {

0 commit comments

Comments
 (0)