2022-04-17 08:19:22 +04:00
|
|
|
use super::*;
|
|
|
|
|
2022-10-21 08:28:29 +04:00
|
|
|
#[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(
|
2022-11-11 08:58:03 +04:00
|
|
|
AppBuilder::new().with_file("foo.c", None),
|
2022-04-17 08:19:22 +04:00
|
|
|
// switches to append mode?
|
|
|
|
(
|
2022-10-23 06:18:32 +04:00
|
|
|
helpers::platform_line("void foo() {#[|}]#"),
|
2022-04-17 08:19:22 +04:00
|
|
|
"i<ret><esc>",
|
2022-04-30 00:27:35 +04:00
|
|
|
helpers::platform_line(indoc! {"\
|
2022-04-17 08:19:22 +04:00
|
|
|
void foo() {
|
|
|
|
#[|\n]#\
|
|
|
|
}
|
2022-10-23 06:18:32 +04:00
|
|
|
"}),
|
2022-04-17 08:19:22 +04:00
|
|
|
),
|
2022-04-19 09:21:31 +04:00
|
|
|
)
|
|
|
|
.await?;
|
2022-04-17 08:19:22 +04:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|