2022-01-18 04:04:40 +04:00
|
|
|
#[cfg(feature = "integration")]
|
|
|
|
mod integration {
|
2022-04-17 06:05:45 +04:00
|
|
|
mod helpers;
|
|
|
|
|
2022-01-18 04:04:40 +04:00
|
|
|
use std::path::PathBuf;
|
2021-10-26 13:03:03 +04:00
|
|
|
|
2022-04-17 06:05:45 +04:00
|
|
|
use helix_core::{syntax::AutoPairConfig, Position, Selection};
|
|
|
|
use helix_term::{args::Args, config::Config};
|
2021-10-26 13:03:03 +04:00
|
|
|
|
2022-01-18 04:04:40 +04:00
|
|
|
use indoc::indoc;
|
2021-10-26 13:03:03 +04:00
|
|
|
|
2022-04-17 06:05:45 +04:00
|
|
|
use self::helpers::*;
|
2022-01-18 04:04:40 +04:00
|
|
|
|
|
|
|
#[tokio::test]
|
|
|
|
async fn hello_world() -> anyhow::Result<()> {
|
|
|
|
test_key_sequence_text_result(
|
|
|
|
Args::default(),
|
|
|
|
Config::default(),
|
2022-04-17 06:05:45 +04:00
|
|
|
("#[\n|]#", "ihello world<esc>", "hello world#[|\n]#"),
|
2022-04-19 09:21:31 +04:00
|
|
|
)
|
|
|
|
.await?;
|
2022-01-18 04:04:40 +04:00
|
|
|
|
|
|
|
Ok(())
|
2021-10-26 13:03:03 +04:00
|
|
|
}
|
|
|
|
|
2022-04-17 08:19:22 +04:00
|
|
|
mod auto_indent;
|
|
|
|
mod auto_pairs;
|
|
|
|
mod movement;
|
2022-04-18 05:04:59 +04:00
|
|
|
mod write;
|
2021-10-26 13:03:03 +04:00
|
|
|
}
|