Skip to content

Commit

Permalink
add test to allow numeric values in filename for goto-file
Browse files Browse the repository at this point in the history
  • Loading branch information
TornaxO7 committed Feb 24, 2024
1 parent a5cd316 commit 43c7816
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 @@ -164,6 +164,17 @@ async fn test_goto_file_impl() -> anyhow::Result<()> {
)
.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(())
}

Expand Down

0 comments on commit 43c7816

Please sign in to comment.