提交 ebd3203e 编写于 作者: N Niko Matsakis

repair broken map test; it seems that the original test relied on hokey

hash fns in order to setup conflicts.  I just removed those asserts,
so the test is not as good as it once was.
上级 7bf0aa1c
......@@ -658,9 +658,6 @@ fn test_growth() {
fn test_removal() {
debug!("*** starting test_removal");
let num_to_insert: uint = 64u;
assert (hash(&0u) == hash(&1u));
assert (hash(&2u) == hash(&3u));
assert (hash(&0u) != hash(&2u));
let hm: map::HashMap<uint, uint> =
map::HashMap::<uint, uint>();
let mut i: uint = 0u;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册