Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/auto_pairs.rs')
| -rw-r--r-- | helix-term/tests/test/auto_pairs.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/helix-term/tests/test/auto_pairs.rs b/helix-term/tests/test/auto_pairs.rs index 1768ec84..04fec1c4 100644 --- a/helix-term/tests/test/auto_pairs.rs +++ b/helix-term/tests/test/auto_pairs.rs @@ -676,7 +676,7 @@ async fn delete_before_word_selection() -> anyhow::Result<()> { test(( format!("{}#[|foo]#{}", pair.0, LINE_END), "i<backspace>", - format!("#[foo|]#{}", LINE_END), + format!("#[|foo]#{}", LINE_END), )) .await?; @@ -684,7 +684,7 @@ async fn delete_before_word_selection() -> anyhow::Result<()> { test(( format!("{}{}#[|foo]#{}", pair.0, pair.1, LINE_END), "i<backspace>", - format!("{}#[foo|]#{}", pair.0, LINE_END), + format!("{}#[|foo]#{}", pair.0, LINE_END), )) .await?; @@ -692,7 +692,7 @@ async fn delete_before_word_selection() -> anyhow::Result<()> { test(( format!("{}#[|{}foo]#{}", pair.0, pair.1, LINE_END), "i<backspace>", - format!("#[foo|]#{}", LINE_END), + format!("#[|foo]#{}", LINE_END), )) .await?; } @@ -706,7 +706,7 @@ async fn delete_before_word_selection_trailing_word() -> anyhow::Result<()> { test(( format!("foo{}#[|{} wor]#{}", pair.0, pair.1, LINE_END), "i<backspace>", - format!("foo#[ wor|]#{}", LINE_END), + format!("foo#[| wor]#{}", LINE_END), )) .await?; } @@ -811,7 +811,7 @@ async fn delete_before_multi_code_point_graphemes() -> anyhow::Result<()> { pair.0, pair.1, LINE_END ), "i<backspace>", - format!("hello #[๐จโ๐ฉโ๐งโ๐ฆ|]# goodbye{}", LINE_END), + format!("hello #[|๐จโ๐ฉโ๐งโ๐ฆ]# goodbye{}", LINE_END), )) .await?; } @@ -988,7 +988,7 @@ async fn delete_mixed_dedent() -> anyhow::Result<()> { )), "i<backspace>", helpers::platform_line(indoc! {"\ - bar = #[woop|]# + bar = #[|woop]# #(|word)# f#(|o)# "}), @@ -1000,16 +1000,16 @@ async fn delete_mixed_dedent() -> anyhow::Result<()> { helpers::platform_line(&format!( indoc! {"\ bar = #[|woop{}]#{} - #(| )# word + #(| )#word #(|fo)#o "}, pair.0, pair.1, )), "a<backspace>", helpers::platform_line(indoc! {"\ - bar = #[woop|]# - #(|w)#ord - #(|fo)# + bar = #[woop\n|]# + #(w|)#ord + #(fo|)# "}), )) .await?; |