aboutsummaryrefslogtreecommitdiff
path: root/helix-term/tests/test
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/tests/test')
-rw-r--r--helix-term/tests/test/movement.rs29
1 files changed, 29 insertions, 0 deletions
diff --git a/helix-term/tests/test/movement.rs b/helix-term/tests/test/movement.rs
index 0873edbe..4ebaae85 100644
--- a/helix-term/tests/test/movement.rs
+++ b/helix-term/tests/test/movement.rs
@@ -577,6 +577,23 @@ async fn test_surround_replace() -> anyhow::Result<()> {
))
.await?;
+ test((
+ platform_line(indoc! {"\
+ {{
+
+ #(}|)#
+ #[}|]#
+ "}),
+ "mrm)",
+ platform_line(indoc! {"\
+ ((
+
+ #()|)#
+ #[)|]#
+ "}),
+ ))
+ .await?;
+
Ok(())
}
@@ -604,5 +621,17 @@ async fn test_surround_delete() -> anyhow::Result<()> {
))
.await?;
+ test((
+ platform_line(indoc! {"\
+ {{
+
+ #(}|)#
+ #[}|]#
+ "}),
+ "mdm",
+ platform_line("\n\n#(\n|)##[\n|]#"),
+ ))
+ .await?;
+
Ok(())
}