Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/auto_indent.rs')
-rw-r--r--helix-term/tests/test/auto_indent.rs14
1 files changed, 10 insertions, 4 deletions
diff --git a/helix-term/tests/test/auto_indent.rs b/helix-term/tests/test/auto_indent.rs
index 5ea1024b..d5c220b7 100644
--- a/helix-term/tests/test/auto_indent.rs
+++ b/helix-term/tests/test/auto_indent.rs
@@ -3,16 +3,22 @@ use super::*;
#[tokio::test(flavor = "multi_thread")]
async fn auto_indent_c() -> anyhow::Result<()> {
test_with_config(
- AppBuilder::new().with_file("foo.c", None),
+ Args {
+ files: vec![(PathBuf::from("foo.c"), Position::default())],
+ ..Default::default()
+ },
+ Config::default(),
+ helpers::test_syntax_conf(None),
// switches to append mode?
(
- "void foo() {#[|}]#",
+ helpers::platform_line("void foo() {#[|}]#").as_ref(),
"i<ret><esc>",
- indoc! {"\
+ helpers::platform_line(indoc! {"\
void foo() {
#[|\n]#\
}
- "},
+ "})
+ .as_ref(),
),
)
.await?;