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

22 lines
482 B
Rust
Raw Normal View History

2022-04-17 08:19:22 +04:00
use super::*;
#[tokio::test]
async fn auto_pairs_basic() -> anyhow::Result<()> {
2022-05-22 21:29:52 +04:00
test(("#[\n|]#", "i(<esc>", "(#[|)]#\n")).await?;
2022-04-17 08:19:22 +04:00
2022-05-22 21:29:52 +04:00
test_with_config(
2022-04-17 08:19:22 +04: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 08:19:22 +04:00
Ok(())
}