File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
crates/nu-cli/tests/completions Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -275,12 +275,21 @@ fn dotnu_completions() {
275275
276276 // Test nested nu script
277277 #[ cfg( windows) ]
278- let completion_str = "use `.\\ dir_module\\ sub module \\ " . to_string ( ) ;
278+ let completion_str = "use `.\\ dir_module\\ " . to_string ( ) ;
279279 #[ cfg( not( windows) ) ]
280- let completion_str = "use `./dir_module/sub module/ " . to_string ( ) ;
280+ let completion_str = "use `./dir_module/" . to_string ( ) ;
281281 let suggestions = completer. complete ( & completion_str, completion_str. len ( ) ) ;
282282
283- match_suggestions ( & vec ! [ "sub.nu" . into( ) ] , & suggestions) ;
283+ match_suggestions (
284+ & vec ! [
285+ "mod.nu" . into( ) ,
286+ #[ cfg( windows) ]
287+ "sub module\\ " . into( ) ,
288+ #[ cfg( not( windows) ) ]
289+ "sub module/`" . into( ) ,
290+ ] ,
291+ & suggestions,
292+ ) ;
284293
285294 // Test nested nu script, with ending '`'
286295 #[ cfg( windows) ]
You can’t perform that action at this time.
0 commit comments