aboutsummaryrefslogblamecommitdiff
path: root/helix-term/tests/test/auto_pairs.rs
blob: ec47a5b4af4ffce405767dbecc8f81e3fa7aa7aa (plain) (tree)
1
2
3
4
5
6
7


                                                   
                                                     
 
                     







                                                          
            

          
use super::*;

#[tokio::test]
async fn auto_pairs_basic() -> anyhow::Result<()> {
    test(("#[\n|]#", "i(<esc>", "(#[|)]#\n")).await?;

    test_with_config(
        Args::default(),
        Config {
            editor: helix_view::editor::Config {
                auto_pairs: AutoPairConfig::Enable(false),
                ..Default::default()
            },
            ..Default::default()
        },
        ("#[\n|]#", "i(<esc>", "(#[|\n]#"),
    )
    .await?;

    Ok(())
}