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