aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test/commands.rs
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/tests/test/commands.rs')
-rw-r--r--helix-term/tests/test/commands.rs23
1 files changed, 23 insertions, 0 deletions
diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs
index 1efb204e..f91a6371 100644
--- a/helix-term/tests/test/commands.rs
+++ b/helix-term/tests/test/commands.rs
@@ -429,3 +429,26 @@ async fn test_delete_word_forward() -> anyhow::Result<()> {
Ok(())
}
+#[tokio::test(flavor = "multi_thread")]
+async fn test_delete_char_forward() -> anyhow::Result<()> {
+ test((
+ platform_line(indoc! {"\
+ #[abc|]#def
+ #(abc|)#ef
+ #(abc|)#f
+ #(abc|)#
+ "})
+ .as_str(),
+ "a<del><esc>",
+ platform_line(indoc! {"\
+ #[abc|]#ef
+ #(abc|)#f
+ #(abc|)#
+ #(abc|)#
+ "})
+ .as_str(),
+ ))
+ .await?;
+
+ Ok(())
+}