Skip to content

Commit 1035ad9

Browse files
committed
Pinching myself for certainty. ;p
1 parent 66b5b95 commit 1035ad9

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/test/run-pass/lib-map.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,10 @@ fn test_removal() {
102102
ret (u / 2u) * 2u;
103103
}
104104

105+
check (hash(0u) == hash(1u));
106+
check (hash(2u) == hash(3u));
107+
check (hash(0u) != hash(2u));
108+
105109
let map.hashfn[uint] hasher = hash;
106110
let map.eqfn[uint] eqer = eq;
107111
let map.hashmap[uint, uint] hm = map.mk_hashmap[uint, uint](hasher, eqer);

0 commit comments

Comments
 (0)