We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9bef077 commit 431e2bcCopy full SHA for 431e2bc
clap_complete/tests/testsuite/engine.rs
@@ -579,9 +579,9 @@ d_dir/
579
fn suggest_custom_arg_value() {
580
fn custom_completer() -> Vec<CompletionCandidate> {
581
vec![
582
- CompletionCandidate::new("custom1"),
583
- CompletionCandidate::new("custom2"),
584
- CompletionCandidate::new("custom3"),
+ CompletionCandidate::new("foo"),
+ CompletionCandidate::new("bar"),
+ CompletionCandidate::new("baz"),
585
]
586
}
587
@@ -594,9 +594,17 @@ fn suggest_custom_arg_value() {
594
assert_data_eq!(
595
complete!(cmd, "--custom [TAB]"),
596
snapbox::str![[r#"
597
-custom1
598
-custom2
599
-custom3
+foo
+bar
+baz
600
+"#]],
601
+ );
602
+
603
+ assert_data_eq!(
604
+ complete!(cmd, "--custom b[TAB]"),
605
+ snapbox::str![[r#"
606
607
608
"#]],
609
);
610
0 commit comments