fix lstrip in biguint (#6151)

* add failing test for multiply_by_rational

* fix BigUint

* fix length

* bump version

* merge tests
This commit is contained in:
Xiliang Chen
2020-05-27 20:18:53 +12:00
committed by GitHub
parent 1ea45a541e
commit c46b2020f2
3 changed files with 15 additions and 6 deletions
@@ -360,6 +360,15 @@ mod tests {
multiply_by_rational(1_000_000_000, MAX128 / 8, MAX128 / 2).unwrap(),
250000000,
);
assert_eq!(
multiply_by_rational(
29459999999999999988000u128,
1000000000000000000u128,
10000000000000000000u128
).unwrap(),
2945999999999999998800u128
);
}
#[test]