From 7f265230ea1fd394752130cc62a08605d4d6815f Mon Sep 17 00:00:00 2001 From: Antonio Scandurra Date: Mon, 31 May 2021 16:51:33 +0200 Subject: [PATCH] Fix tests --- zed/src/editor.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/zed/src/editor.rs b/zed/src/editor.rs index 8b15d71563e04c6bb5142f854c851861507314fd..4919da91031d20be757ea43b986a833a4fb30d64 100644 --- a/zed/src/editor.rs +++ b/zed/src/editor.rs @@ -4044,7 +4044,7 @@ mod tests { }); assert_eq!( view.read_with(&cx, |view, cx| view.selection_ranges(cx)), - &[DisplayPoint::new(0, 0)..DisplayPoint::new(5, 0)] + &[DisplayPoint::new(5, 0)..DisplayPoint::new(0, 0)] ); // Trying to expand the selected syntax node one more time has no effect. @@ -4053,7 +4053,7 @@ mod tests { }); assert_eq!( view.read_with(&cx, |view, cx| view.selection_ranges(cx)), - &[DisplayPoint::new(0, 0)..DisplayPoint::new(5, 0)] + &[DisplayPoint::new(5, 0)..DisplayPoint::new(0, 0)] ); view.update(&mut cx, |view, cx| {