Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Fix test
Conrad Irwinb596b4153ffb
diff --git a/crates/editor/src/display_map.rs b/crates/editor/src/display_map.rsindex 6e179950f35..184990ea78d 100644--- a/crates/editor/src/display_map.rs+++ b/crates/editor/src/display_map.rs@@ -1007,7 +1007,7 @@ pub mod tests {use settings::SettingsStore;use smol::stream::StreamExt;use std::{env, sync::Arc};- use theme::{SyntaxTheme, Theme};+ use theme::SyntaxTheme;use util::test::{marked_text_ranges, sample_text};use Bias::*;diff --git a/crates/editor/src/editor_tests.rs b/crates/editor/src/editor_tests.rsindex 6cc78385a3e..664db53e1ab 100644--- a/crates/editor/src/editor_tests.rs+++ b/crates/editor/src/editor_tests.rs@@ -847,7 +847,6 @@ fn test_move_cursor(cx: &mut TestAppContext) {#[gpui::test]fn test_move_cursor_multibyte(cx: &mut TestAppContext) {- todo!();init_test(cx, |_| {});let view = cx@@ -889,6 +888,11 @@ fn test_move_cursor_multibyte(cx: &mut TestAppContext) {);view.move_down(&MoveDown, cx);+ assert_eq!(+ view.selections.display_ranges(cx),+ &[empty_range(1, "ab⋯e".len())]+ );+ view.move_left(&MoveLeft, cx);assert_eq!(view.selections.display_ranges(cx),&[empty_range(1, "ab⋯".len())]@@ -933,22 +937,17 @@ fn test_move_cursor_multibyte(cx: &mut TestAppContext) {view.move_up(&MoveUp, cx);assert_eq!(view.selections.display_ranges(cx),- &[empty_range(0, "ⓐⓑ⋯ⓔ".len())]- );- view.move_left(&MoveLeft, cx);- assert_eq!(- view.selections.display_ranges(cx),- &[empty_range(0, "ⓐⓑ⋯".len())]+ &[empty_range(0, "ⓐⓑ".len())]);view.move_left(&MoveLeft, cx);assert_eq!(view.selections.display_ranges(cx),- &[empty_range(0, "ⓐⓑ".len())]+ &[empty_range(0, "ⓐ".len())]);view.move_left(&MoveLeft, cx);assert_eq!(view.selections.display_ranges(cx),- &[empty_range(0, "ⓐ".len())]+ &[empty_range(0, "".len())]);});}diff --git a/crates/editor/src/movement.rs b/crates/editor/src/movement.rsindex 8f5d0d802c0..580faf10506 100644--- a/crates/editor/src/movement.rs+++ b/crates/editor/src/movement.rs@@ -429,7 +429,6 @@ mod tests {test::{editor_test_context::EditorTestContext, marked_display_snapshot},Buffer, DisplayMap, ExcerptRange, InlayId, MultiBuffer,};- use language::language_settings::AllLanguageSettings;use project::Project;use settings::SettingsStore;use util::post_inc;