File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed
clap_complete/tests/testsuite Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -222,7 +222,6 @@ fn complete() {
222
222
) ;
223
223
}
224
224
225
- // Issue 5313 (https://github.com/clap-rs/clap/issues/5313)
226
225
{
227
226
use std:: fs:: File ;
228
227
use std:: path:: Path ;
@@ -234,13 +233,11 @@ fn complete() {
234
233
File :: create ( Path :: new ( testdir_path) . join ( "baz\t qux.txt" ) ) . unwrap ( ) ;
235
234
236
235
let input = format ! (
237
- "exhaustive hint --file {}/\t \t " ,
236
+ "exhaustive hint --file {}/b \t " ,
238
237
testdir_path. to_string_lossy( )
239
238
) ;
240
- let expected = r#"%
241
- foo bar.txt baz^Iqux.txt "# ;
242
239
let actual = runtime. complete ( input. as_str ( ) , & term) . unwrap ( ) ;
243
- snapbox :: assert_eq ( expected , actual) ;
240
+ assert ! ( !actual . contains ( "foo" ) , "Actual output: \n { actual}" ) ;
244
241
}
245
242
246
243
let input = "exhaustive hint --other \t " ;
You can’t perform that action at this time.
0 commit comments