Skip to content

Commit ea77b98

Browse files
committed
test(complete): Make it order independent
1 parent b0fea2b commit ea77b98

File tree

1 file changed

+2
-5
lines changed
  • clap_complete/tests/testsuite

1 file changed

+2
-5
lines changed

clap_complete/tests/testsuite/bash.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,6 @@ fn complete() {
222222
);
223223
}
224224

225-
// Issue 5313 (https://github.com/clap-rs/clap/issues/5313)
226225
{
227226
use std::fs::File;
228227
use std::path::Path;
@@ -234,13 +233,11 @@ fn complete() {
234233
File::create(Path::new(testdir_path).join("baz\tqux.txt")).unwrap();
235234

236235
let input = format!(
237-
"exhaustive hint --file {}/\t\t",
236+
"exhaustive hint --file {}/b\t",
238237
testdir_path.to_string_lossy()
239238
);
240-
let expected = r#"%
241-
foo bar.txt baz^Iqux.txt "#;
242239
let actual = runtime.complete(input.as_str(), &term).unwrap();
243-
snapbox::assert_eq(expected, actual);
240+
assert!(!actual.contains("foo"), "Actual output:\n{actual}");
244241
}
245242

246243
let input = "exhaustive hint --other \t";

0 commit comments

Comments
 (0)