mirror of
https://github.com/zed-industries/zed.git
synced 2025-01-24 19:10:24 +00:00
Fix test
This commit is contained in:
parent
dfb6a2f7fc
commit
1bb34e08bb
1 changed files with 2 additions and 2 deletions
|
@ -386,7 +386,7 @@ mod tests {
|
|||
map.insert("c", 5);
|
||||
|
||||
let result = map
|
||||
.get_from_while(&"ba", |key, _| key.starts_with(&"ba"))
|
||||
.get_from_while(&"ba", |_, key, _| key.starts_with(&"ba"))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
assert_eq!(result.len(), 2);
|
||||
|
@ -394,7 +394,7 @@ mod tests {
|
|||
assert!(result.iter().find(|(k, _)| k == &&"baaab").is_some());
|
||||
|
||||
let result = map
|
||||
.get_from_while(&"c", |key, _| key.starts_with(&"c"))
|
||||
.get_from_while(&"c", |_, key, _| key.starts_with(&"c"))
|
||||
.collect::<Vec<_>>();
|
||||
|
||||
assert_eq!(result.len(), 1);
|
||||
|
|
Loading…
Reference in a new issue