mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 23:02:31 +00:00
tests: fixes mkeymap tests
This commit is contained in:
parent
6c5d4c5896
commit
d90186d3bb
1 changed files with 2 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue