From 1babb7299a92d5520142c32584dcfa1b7a3d9fff Mon Sep 17 00:00:00 2001 From: Awalrus Date: Sun, 3 Jul 2022 14:34:41 +0300 Subject: [PATCH] Use indoc to fix tests --- helix-term/tests/test/commands.rs | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index c470655eec1b6..9cc1994344ae2 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -98,14 +98,23 @@ async fn test_selection_duplication() -> anyhow::Result<()> { test(( "#[\n|]#", "iloremipsumdolorggvlCC", - 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|]#", "iloremipsumdolorgglbCC", - 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(())