Skip to content

Commit

Permalink
Rollup merge of rust-lang#21302 - gutworth:rm-find-equiv-test, r=brson
Browse files Browse the repository at this point in the history
  • Loading branch information
barosl committed Jan 20, 2015
2 parents d8a8923 + 35d46fa commit 8f5ab04
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions src/libstd/collections/hash/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2112,23 +2112,6 @@ mod test_map {
assert_eq!(m.remove(&0), Some(0));
}

#[test]
fn test_find_equiv() {
let mut m = HashMap::new();

let (foo, bar, baz) = (1i,2i,3i);
m.insert("foo".to_string(), foo);
m.insert("bar".to_string(), bar);
m.insert("baz".to_string(), baz);


assert_eq!(m.get("foo"), Some(&foo));
assert_eq!(m.get("bar"), Some(&bar));
assert_eq!(m.get("baz"), Some(&baz));

assert_eq!(m.get("qux"), None);
}

#[test]
fn test_from_iter() {
let xs = [(1i, 1i), (2, 2), (3, 3), (4, 4), (5, 5), (6, 6)];
Expand Down

0 comments on commit 8f5ab04

Please sign in to comment.