tests: fixes mkeymap tests

This commit is contained in:
Kevin K 2018-08-20 20:28:51 -04:00
parent 6c5d4c5896
commit d90186d3bb
No known key found for this signature in database
GPG key ID: 2E39D46AABC94DDD

View file

@ -362,6 +362,7 @@ mod tests {
}
#[test]
#[should_panic]
fn insert_duplicate_value() {
let mut map: MKeyMap<Arg> = MKeyMap::new();
@ -445,7 +446,7 @@ mod tests {
map.insert(Long(OsString::from("One")), Arg::with_name("Value1"));
map.insert(Long(OsString::from("Two")), Arg::with_name("Value2"));
map.insert(Position(1), Arg::with_name("Value1"));
map.insert(Position(1), Arg::with_name("Value3"));
let iter = map.keys().cloned();
let mut ground_truth = HashSet::new();