Skip to content

Commit

Permalink
Use indoc to fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
A-Walrus committed Jul 3, 2022
1 parent 61a8291 commit 1babb72
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions helix-term/tests/test/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,14 +98,23 @@ async fn test_selection_duplication() -> anyhow::Result<()> {
test((
"#[\n|]#",
"ilorem<ret>ipsum<ret>dolor<esc>ggvlCC",
platform_line("#(lo|)#rem\n#(ip|)#sum\n#[do|]#lor\n").as_str(),
platform_line(indoc!{"\
#(lo|)#rem
#(ip|)#sum
#[do|]#lor
"}).as_str(),
))
.await?;

// Backward
test((
"#[\n|]#",
"ilorem<ret>ipsum<ret>dolor<esc>gglbCC",
platform_line("#(|lo)#rem\n#(|ip)#sum\n#[|do]#lor\n").as_str(),
platform_line(indoc!{"\
#(|lo)#rem
#(|ip)#sum
#[|do]#lor
"}).as_str(),
))
.await?;
Ok(())
Expand Down

0 comments on commit 1babb72

Please sign in to comment.