Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Remove another supported exemption
Conrad Irwin0958def770cc
diff --git a/crates/vim/src/normal.rs b/crates/vim/src/normal.rsindex 20344366944..c8d12f8ee33 100644--- a/crates/vim/src/normal.rs+++ b/crates/vim/src/normal.rs@@ -356,7 +356,7 @@ mod test {use crate::{state::Mode::{self},- test::{ExemptionFeatures, NeovimBackedTestContext},+ test::NeovimBackedTestContext,};#[gpui::test]@@ -762,20 +762,22 @@ mod test {#[gpui::test]async fn test_dd(cx: &mut gpui::TestAppContext) {- let mut cx = NeovimBackedTestContext::new(cx).await.binding(["d", "d"]);- cx.assert("ˇ").await;- cx.assert("The ˇquick").await;- cx.assert_all(indoc! {"- The qˇuick- brown ˇfox- jumps ˇover"})- .await;- cx.assert_exempted(+ let mut cx = NeovimBackedTestContext::new(cx).await;+ cx.assert_neovim_compatible("ˇ", ["d", "d"]).await;+ cx.assert_neovim_compatible("The ˇquick", ["d", "d"]).await;+ for marked_text in cx.each_marked_position(indoc! {"+ The qˇuick+ brown ˇfox+ jumps ˇover"})+ {+ cx.assert_neovim_compatible(&marked_text, ["d", "d"]).await;+ }+ cx.assert_neovim_compatible(indoc! {"The quickˇbrown fox"},- ExemptionFeatures::DeletionOnEmptyLine,+ ["d", "d"],).await;}diff --git a/crates/vim/src/normal/delete.rs b/crates/vim/src/normal/delete.rsindex 19ea6af875f..848e9f725d8 100644--- a/crates/vim/src/normal/delete.rs+++ b/crates/vim/src/normal/delete.rs@@ -322,24 +322,31 @@ mod test {let mut cx = NeovimBackedTestContext::new(cx).await.binding(["d", "g", "g"]);- cx.assert_neovim_compatible(indoc! {"+ cx.assert_neovim_compatible(+ indoc! {"The quickbrownˇ foxjumps over- the lazy"}, ["d", "g", "g"])- .await;- cx.assert_neovim_compatible(indoc! {"+ the lazy"},+ ["d", "g", "g"],+ )+ .await;+ cx.assert_neovim_compatible(+ indoc! {"The quickbrown foxjumps over- the lˇazy"}, ["d", "g", "g"])- .await;+ the lˇazy"},+ ["d", "g", "g"],+ )+ .await;cx.assert_neovim_compatible(indoc! {"The qˇuickbrown foxjumps over- the lazy"},["d", "g", "g"]+ the lazy"},+ ["d", "g", "g"],).await;cx.assert_neovim_compatible(@@ -347,7 +354,8 @@ mod test {ˇbrown foxjumps over- the lazy"},["d", "g", "g"]+ the lazy"},+ ["d", "g", "g"],).await;}diff --git a/crates/vim/src/test/neovim_backed_test_context.rs b/crates/vim/src/test/neovim_backed_test_context.rsindex 0df5c32136b..e58f805a026 100644--- a/crates/vim/src/test/neovim_backed_test_context.rs+++ b/crates/vim/src/test/neovim_backed_test_context.rs@@ -13,15 +13,13 @@ use util::test::{generate_marked_text, marked_text_offsets};use super::{neovim_connection::NeovimConnection, NeovimBackedBindingTestContext, VimTestContext};use crate::state::Mode;-pub const SUPPORTED_FEATURES: &[ExemptionFeatures] = &[ExemptionFeatures::DeletionOnEmptyLine];+pub const SUPPORTED_FEATURES: &[ExemptionFeatures] = &[];/// Enum representing features we have tests for but which don't work, yet. Used/// to add exemptions and automatically#[derive(PartialEq, Eq)]pub enum ExemptionFeatures {// MOTIONS- // Deletions on empty lines miss some newlines- DeletionOnEmptyLine,// When an operator completes at the end of the file, an extra newline is leftOperatorLastNewlineRemains,// Deleting a word on an empty line doesn't remove the newline