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()
|
|
|
|
},
|
2022-09-17 07:17:48 +04:00
|
|
|
helpers::test_syntax_conf(None),
|
2022-04-17 08:19:22 +04:00
|
|
|
("#[\n|]#", "i(<esc>", "(#[|\n]#"),
|
2022-04-19 09:21:31 +04:00
|
|
|
)
|
|
|
|
.await?;
|
2022-04-17 08:19:22 +04:00
|
|
|
|
|
|
|
Ok(())
|
|
|
|
}
|