Skip to content

Commit

Permalink
adding integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Dec 9, 2023
1 parent f84c36b commit 79abf79
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions helix-term/tests/test/commands.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,17 @@ async fn test_goto_file_impl() -> anyhow::Result<()> {
)
.await?;

// path ends with ","
test_key_sequence(
&mut AppBuilder::new().with_file(file.path(), None).build()?,
Some("i/tmp/test.txt,<esc>bgf"),
Some(&|app| {
assert_eq!(1, match_paths(app, vec!["test.txt"]));
}),
false,
)
.await?;

Ok(())
}

Expand Down

0 comments on commit 79abf79

Please sign in to comment.