From fffcfbc9a6d17bd118a39916afea7a739fb472eb Mon Sep 17 00:00:00 2001 From: Awalrus Date: Sat, 2 Jul 2022 23:43:30 +0300 Subject: [PATCH] Add integration tests --- helix-term/tests/test/commands.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index 0cd79bc7f307..cd69c0c90cae 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -91,3 +91,22 @@ async fn test_buffer_close_concurrent() -> anyhow::Result<()> { Ok(()) } + +#[tokio::test] +async fn test_selection_duplication() -> anyhow::Result<()> { + // Forward + test(( + "#[\n|]#", + "iloremipsumdolorggvlCC", + "#(lo|)#rem\n#(ip|)#sum\n#[do|]#lor\n", + )) + .await?; + // Backward + test(( + "#[\n|]#", + "iloremipsumdolorgglbCC", + "#(|lo)#rem\n#(|ip)#sum\n#[|do]#lor\n", + )) + .await?; + Ok(()) +}