Skip to content

Commit 21828f4

Browse files
authored
Merge pull request #6245 from epage/complete
test(complete): Update for new versions
2 parents 54f1ab8 + b8c9ad5 commit 21828f4

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

clap_complete/tests/testsuite/elvish.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -232,15 +232,15 @@ value value
232232

233233
let input = "exhaustive empty \t";
234234
let expected = snapbox::str![[r#"
235-
no candidates
235+
error: no candidates
236236
% exhaustive empty
237237
"#]];
238238
let actual = runtime.complete(input, &term).unwrap();
239239
assert_data_eq!(actual, expected);
240240

241241
let input = "exhaustive --empty=\t";
242242
let expected = snapbox::str![[r#"
243-
no candidates
243+
error: no candidates
244244
% exhaustive --empty=
245245
"#]];
246246
let actual = runtime.complete(input, &term).unwrap();
@@ -372,8 +372,8 @@ fn complete_dynamic_empty_subcommand() {
372372

373373
let input = "exhaustive empty \t\t";
374374
let expected = snapbox::str![[r#"
375-
no candidates
376-
no candidates
375+
error: no candidates
376+
error: no candidates
377377
% exhaustive empty
378378
"#]];
379379
let actual = runtime.complete(input, &term).unwrap();
@@ -393,7 +393,7 @@ fn complete_dynamic_empty_option_value() {
393393

394394
let input = "exhaustive --empty=\t";
395395
let expected = snapbox::str![[r#"
396-
no candidates
396+
error: no candidates
397397
% exhaustive --empty=
398398
"#]];
399399
let actual = runtime.complete(input, &term).unwrap();

clap_complete/tests/testsuite/fish.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ fn complete_dynamic_env_quoted_help() {
282282

283283
let input = "exhaustive quote \t\t";
284284
let expected = snapbox::str![[r#"
285-
% exhaustive quote
285+
% exhaustive quote cmd-single-quotes
286286
cmd-single-quotes (Can be 'always', 'auto', or 'never')
287287
cmd-double-quotes (Can be "always", "auto", or "never")
288288
cmd-backticks (For more information see `echo test`)

0 commit comments

Comments
 (0)