Fix editor-test

This commit is contained in:
Jeremy Soller 2023-03-01 11:46:41 -07:00
parent 3135122f6b
commit 2b991129e3
No known key found for this signature in database
GPG key ID: DCFCA852D3906975

View file

@ -101,7 +101,10 @@ fn main() {
for c in grapheme.chars() {
editor.action(Action::Insert(c));
}
assert_eq!(cursor, editor.cursor());
assert_eq!(
(cursor.line, cursor.index),
(editor.cursor().line, editor.cursor().index)
);
}
}