File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
clap_complete/tests/testsuite Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -380,3 +380,20 @@ fn complete_dynamic_empty_option_value() {
380380 let actual = runtime. complete ( input, & term) . unwrap ( ) ;
381381 assert_data_eq ! ( actual, expected) ;
382382}
383+
384+ #[ test]
385+ #[ cfg( all( unix, feature = "unstable-dynamic" ) ) ]
386+ #[ cfg( feature = "unstable-shell-tests" ) ]
387+ fn complete_dynamic_dir_trailing_space ( ) {
388+ if !common:: has_command ( CMD ) {
389+ return ;
390+ }
391+
392+ let term = completest:: Term :: new ( ) ;
393+ let mut runtime = common:: load_runtime :: < RuntimeBuilder > ( "dynamic-env" , "exhaustive" ) ;
394+
395+ let input = "exhaustive hint --file test\t " ;
396+ let expected = snapbox:: str![ "exhaustive hint --file test % exhaustive hint --file tests/ " ] ;
397+ let actual = runtime. complete ( input, & term) . unwrap ( ) ;
398+ assert_data_eq ! ( actual, expected) ;
399+ }
You can’t perform that action at this time.
0 commit comments