Skip to content

Commit

Permalink
fix as-is tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dead10ck committed Nov 2, 2024
1 parent 2456a65 commit 9360563
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions helix-term/tests/test/auto_pairs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -684,6 +684,7 @@ async fn delete_basic() -> anyhow::Result<()> {
format!("{}#[|{}]#{}", pair.0, pair.1, LINE_END),
"i<backspace>",
format!("#[|{}]#", LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand Down Expand Up @@ -857,6 +858,7 @@ async fn delete_configured_multi_byte_chars() -> anyhow::Result<()> {
format!("{}#[|{}]#{}", open, close, LINE_END),
"i<backspace>",
format!("#[|{}]#", LINE_END),
LineFeedHandling::AsIs,
),
)
.await?;
Expand Down Expand Up @@ -1053,6 +1055,7 @@ async fn delete_before_eol() -> anyhow::Result<()> {
),
"i<backspace>",
format!("{0}#[|{0}]#", LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand Down Expand Up @@ -1221,6 +1224,7 @@ async fn delete_append_basic() -> anyhow::Result<()> {
),
"a<backspace>",
format!("#[{eol}{eol}|]#", eol = LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand All @@ -1240,6 +1244,7 @@ async fn delete_append_multi_range() -> anyhow::Result<()> {
),
"a<backspace>",
format!("#[ {eol}|]##( {eol}|)##( {eol}|)#", eol = LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand All @@ -1259,6 +1264,7 @@ async fn delete_append_end_of_word() -> anyhow::Result<()> {
),
"a<backspace>",
format!("fo#[o{}|]#", LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand Down Expand Up @@ -1340,6 +1346,7 @@ async fn delete_append_end_of_word_multi() -> anyhow::Result<()> {
),
"a<backspace>",
format!("fo#[o{eol}|]#fo#(o{eol}|)#fo#(o{eol}|)#", eol = LINE_END),
LineFeedHandling::AsIs,
))
.await?;
}
Expand Down

0 comments on commit 9360563

Please sign in to comment.