Skip to content

Commit 4339952

Browse files
committed
test the correct function (oops)
1 parent 3d735e4 commit 4339952

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libextra/num/bigint.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1620,7 +1620,7 @@ mod biguint_tests {
16201620
#[test]
16211621
fn test_rand() {
16221622
let mut rng = task_rng();
1623-
rng.gen_bigint(137);
1623+
let n: BigUint = rng.gen_biguint(137);
16241624
}
16251625
}
16261626

@@ -2056,7 +2056,7 @@ mod bigint_tests {
20562056
#[test]
20572057
fn test_rand() {
20582058
let mut rng = task_rng();
2059-
rng.gen_bigint(137);
2059+
let n: BigInt = rng.gen_bigint(137);
20602060
assert!(rng.gen_bigint(0).is_zero());
20612061
}
20622062
}

0 commit comments

Comments
 (0)