Skip to content

Commit

Permalink
Add integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Walrus committed Jul 2, 2022
1 parent 81a7f60 commit fffcfbc
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions helix-term/tests/test/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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|]#",
"ilorem<ret>ipsum<ret>dolor<esc>ggvlCC",
"#(lo|)#rem\n#(ip|)#sum\n#[do|]#lor\n",
))
.await?;
// Backward
test((
"#[\n|]#",
"ilorem<ret>ipsum<ret>dolor<esc>gglbCC",
"#(|lo)#rem\n#(|ip)#sum\n#[|do]#lor\n",
))
.await?;
Ok(())
}

0 comments on commit fffcfbc

Please sign in to comment.