helix-mods/helix-term/tests/test/auto_pairs.rs

23 lines
523 B
Rust
Raw Normal View History

2022-04-17 06:19:22 +02:00
use super::*;
#[tokio::test]
async fn auto_pairs_basic() -> anyhow::Result<()> {
2022-05-22 19:29:52 +02:00
test(("#[\n|]#", "i(<esc>", "(#[|)]#\n")).await?;
2022-04-17 06:19:22 +02:00
2022-05-22 19:29:52 +02:00
test_with_config(
2022-04-17 06:19:22 +02:00
Args::default(),
Config {
editor: helix_view::editor::Config {
auto_pairs: AutoPairConfig::Enable(false),
..Default::default()
},
..Default::default()
},
helpers::test_syntax_conf(None),
2022-04-17 06:19:22 +02:00
("#[\n|]#", "i(<esc>", "(#[|\n]#"),
)
.await?;
2022-04-17 06:19:22 +02:00
Ok(())
}