From 43c78166e77b57583ec07ed8501dbf0bba83222c Mon Sep 17 00:00:00 2001 From: TornaxO7 Date: Sat, 24 Feb 2024 19:47:00 +0100 Subject: [PATCH] add test to allow numeric values in filename for goto-file --- helix-term/tests/test/commands.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/helix-term/tests/test/commands.rs b/helix-term/tests/test/commands.rs index 2d635ba342d1a..a44939f05acf3 100644 --- a/helix-term/tests/test/commands.rs +++ b/helix-term/tests/test/commands.rs @@ -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';B;gf"), + Some(&|app| { + assert_eq!(1, match_paths(app, vec!["one123.js"])); + }), + false, + ) + .await?; + Ok(()) }