File tree Expand file tree Collapse file tree 1 file changed +14
-6
lines changed
clap_complete/tests/testsuite Expand file tree Collapse file tree 1 file changed +14
-6
lines changed Original file line number Diff line number Diff line change @@ -579,9 +579,9 @@ d_dir/
579
579
fn suggest_custom_arg_value ( ) {
580
580
fn custom_completer ( ) -> Vec < CompletionCandidate > {
581
581
vec ! [
582
- CompletionCandidate :: new( "custom1 " ) ,
583
- CompletionCandidate :: new( "custom2 " ) ,
584
- CompletionCandidate :: new( "custom3 " ) ,
582
+ CompletionCandidate :: new( "foo " ) ,
583
+ CompletionCandidate :: new( "bar " ) ,
584
+ CompletionCandidate :: new( "baz " ) ,
585
585
]
586
586
}
587
587
@@ -594,9 +594,17 @@ fn suggest_custom_arg_value() {
594
594
assert_data_eq ! (
595
595
complete!( cmd, "--custom [TAB]" ) ,
596
596
snapbox:: str ![ [ r#"
597
- custom1
598
- custom2
599
- custom3
597
+ foo
598
+ bar
599
+ baz
600
+ "# ] ] ,
601
+ ) ;
602
+
603
+ assert_data_eq ! (
604
+ complete!( cmd, "--custom b[TAB]" ) ,
605
+ snapbox:: str ![ [ r#"
606
+ bar
607
+ baz
600
608
"# ] ] ,
601
609
) ;
602
610
}
You can’t perform that action at this time.
0 commit comments