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

22 lines
482 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()
},
("#[\n|]#", "i(<esc>", "(#[|\n]#"),
)
.await?;
2022-04-17 06:19:22 +02:00
Ok(())
}