Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'helix-term/tests/test/commands.rs')
-rw-r--r--helix-term/tests/test/commands.rs22
1 files changed, 22 insertions, 0 deletions
diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs
index aaa442f3..351f07fe 100644
--- a/helix-term/tests/test/commands.rs
+++ b/helix-term/tests/test/commands.rs
@@ -153,6 +153,28 @@ async fn test_goto_file_impl() -> anyhow::Result<()> {
)
.await?;
+ // ';' is behind the path
+ test_key_sequence(
+ &mut AppBuilder::new().with_file(file.path(), None).build()?,
+ Some("iimport 'one.js';<esc>B;gf"),
+ Some(&|app| {
+ assert_eq!(1, match_paths(app, vec!["one.js"]));
+ }),
+ false,
+ )
+ .await?;
+
+ // allow numeric values in path
+ test_key_sequence(
+ &mut AppBuilder::new().with_file(file.path(), None).build()?,
+ Some("iimport 'one123.js'<esc>B;gf"),
+ Some(&|app| {
+ assert_eq!(1, match_paths(app, vec!["one123.js"]));
+ }),
+ false,
+ )
+ .await?;
+
Ok(())
}