mirror of
https://github.com/zed-industries/zed.git
synced 2024-12-01 04:28:57 +00:00
Fix tests
This commit is contained in:
parent
3f9d224e0f
commit
05125f76bd
1 changed files with 14 additions and 8 deletions
|
@ -2030,19 +2030,25 @@ mod tests {
|
|||
let buffer_1_events = buffer_1_events.borrow();
|
||||
assert_eq!(
|
||||
*buffer_1_events,
|
||||
vec![Event::Edited(vec![Edit {
|
||||
old_range: 2..4,
|
||||
new_range: 2..5
|
||||
}])]
|
||||
vec![
|
||||
Event::Edited(vec![Edit {
|
||||
old_range: 2..4,
|
||||
new_range: 2..5
|
||||
},]),
|
||||
Event::Dirtied
|
||||
]
|
||||
);
|
||||
|
||||
let buffer_2_events = buffer_2_events.borrow();
|
||||
assert_eq!(
|
||||
*buffer_2_events,
|
||||
vec![Event::Edited(vec![Edit {
|
||||
old_range: 2..4,
|
||||
new_range: 2..5
|
||||
}])]
|
||||
vec![
|
||||
Event::Edited(vec![Edit {
|
||||
old_range: 2..4,
|
||||
new_range: 2..5
|
||||
},]),
|
||||
Event::Dirtied
|
||||
]
|
||||
);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue