mirror of
https://github.com/zed-industries/zed.git
synced 2024-11-07 20:39:04 +03:00
Fix test
This commit is contained in:
parent
dfb6a2f7fc
commit
1bb34e08bb
@ -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 New Issue
Block a user