Fix tests
This commit is contained in:
parent
680486c4b5
commit
89b87efa59
2 changed files with 7 additions and 6 deletions
|
|
@ -292,7 +292,7 @@ mod test {
|
|||
},
|
||||
CursorPosition {
|
||||
id: 1,
|
||||
char_index: 0
|
||||
char_index: 1
|
||||
}
|
||||
]
|
||||
)
|
||||
|
|
@ -336,18 +336,18 @@ mod test {
|
|||
TextWithCursors::new(
|
||||
"that was really complex sample for testing cursor movements",
|
||||
vec![
|
||||
CursorPosition {
|
||||
id: 2,
|
||||
char_index: 5
|
||||
}, // unchanged
|
||||
CursorPosition {
|
||||
id: 0,
|
||||
char_index: 9
|
||||
}, // before "really"
|
||||
CursorPosition {
|
||||
id: 1,
|
||||
char_index: 25
|
||||
char_index: 23
|
||||
}, // inside of "s|ample" because "text" got replaced by "sample"
|
||||
CursorPosition {
|
||||
id: 2,
|
||||
char_index: 5
|
||||
}, // unchanged
|
||||
CursorPosition {
|
||||
id: 3,
|
||||
char_index: 31
|
||||
|
|
|
|||
|
|
@ -23,4 +23,5 @@ EditedText {
|
|||
operation: <delete ' you? Adam' from index 43>,
|
||||
},
|
||||
],
|
||||
cursors: [],
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue