diff --git a/src/tests/expand.rs b/src/tests/expand.rs index 2488d2bf0..de80c71f4 100644 --- a/src/tests/expand.rs +++ b/src/tests/expand.rs @@ -126,6 +126,7 @@ macro_rules! expand_test { // lol // nub // q + // zzz // .foo // aaa // aaa2 @@ -144,6 +145,7 @@ macro_rules! expand_test { std::fs::write("test/fish_expand_test/baz/xxx", []).unwrap(); std::fs::write("test/fish_expand_test/baz/yyy", []).unwrap(); std::fs::write("test/fish_expand_test/lol/nub/q", []).unwrap(); + std::fs::write("test/fish_expand_test/lol/nub/zzz", []).unwrap(); std::fs::write("test/fish_expand_test/aaa2/x", []).unwrap(); // This is checking that .* does NOT match . and .. @@ -291,6 +293,13 @@ macro_rules! expand_test { "Wrong fuzzy matching 3" ); + expand_test!( + "test/fish_expand_test/*/nu/zz", + fuzzy_comp, + (format!("test/fish_expand_test/{any_str_str}/nub/zzz")), + "Glob did not expand correctly with more than one path item after the *" + ); + expand_test!( "test/fish_expand_test/b/yyy", fuzzy_comp,