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]#"),
|
2022-04-19 07:21:31 +02:00
|
|
|
)
|
|
|
|
.await?;
|
2022-04-17 06:19:22 +02:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|