From 2b991129e3ae52bac3d98874a9294328731b8b82 Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Wed, 1 Mar 2023 11:46:41 -0700 Subject: [PATCH] Fix editor-test --- examples/editor-test/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/examples/editor-test/src/main.rs b/examples/editor-test/src/main.rs index 53459d4..2144240 100644 --- a/examples/editor-test/src/main.rs +++ b/examples/editor-test/src/main.rs @@ -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) + ); } }