提交 acc14776 编写于 作者: G Graydon Hoare

std: update rand-using tests, r=burningtree

上级 8eaf0835
......@@ -1425,8 +1425,8 @@ pub fn test_bitv_remove() {
}
fn rng() -> rand::Rng {
let seed = ~[1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
rand::seeded_rng(&seed)
let seed = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
rand::seeded_rng(seed)
}
#[bench]
......
......@@ -838,7 +838,7 @@ fn test_rand_int() {
check_equal(ctrl, &map);
assert map.find(&5).is_none();
let rng = rand::seeded_rng(&~[42]);
let rng = rand::seeded_rng(&[42]);
for 3.times {
for 90.times {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册