helix-mirror/helix-term/tests/test/auto_indent.rs

22 lines
442 B
Rust
Raw Normal View History

2022-04-17 08:19:22 +04:00
use super::*;
#[tokio::test(flavor = "multi_thread")]
2022-04-17 08:19:22 +04:00
async fn auto_indent_c() -> anyhow::Result<()> {
2022-05-22 21:29:52 +04:00
test_with_config(
AppBuilder::new().with_file("foo.c", None),
2022-04-17 08:19:22 +04:00
// switches to append mode?
(
"void foo() {#[|}]#",
2022-04-17 08:19:22 +04:00
"i<ret><esc>",
indoc! {"\
2022-04-17 08:19:22 +04:00
void foo() {
#[|\n]#\
}
"},
2022-04-17 08:19:22 +04:00
),
)
.await?;
2022-04-17 08:19:22 +04:00
Ok(())
}