Skip to content

Commit bc2f22d

Browse files
committed
Merge pull request #21302 from gutworth/rm-find-equiv-test
remove test_find_equiv, since find_equiv doesn't exist anymore Reviewed-by: brson
2 parents f4f31d3 + 35d46fa commit bc2f22d

File tree

1 file changed

+0
-17
lines changed
  • src/libstd/collections/hash

1 file changed

+0
-17
lines changed

src/libstd/collections/hash/map.rs

-17
Original file line numberDiff line numberDiff line change
@@ -2112,23 +2112,6 @@ mod test_map {
21122112
assert_eq!(m.remove(&0), Some(0));
21132113
}
21142114

2115-
#[test]
2116-
fn test_find_equiv() {
2117-
let mut m = HashMap::new();
2118-
2119-
let (foo, bar, baz) = (1i,2i,3i);
2120-
m.insert("foo".to_string(), foo);
2121-
m.insert("bar".to_string(), bar);
2122-
m.insert("baz".to_string(), baz);
2123-
2124-
2125-
assert_eq!(m.get("foo"), Some(&foo));
2126-
assert_eq!(m.get("bar"), Some(&bar));
2127-
assert_eq!(m.get("baz"), Some(&baz));
2128-
2129-
assert_eq!(m.get("qux"), None);
2130-
}
2131-
21322115
#[test]
21332116
fn test_from_iter() {
21342117
let xs = [(1i, 1i), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)];

0 commit comments

Comments
 (0)