Skip to content

Commit bbb2e6f

Browse files
committed
test: Add test case for completing custom value of argument
1 parent 999071c commit bbb2e6f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

clap_complete/tests/testsuite/dynamic.rs

+7
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,13 @@ val3
590590
);
591591
}
592592

593+
#[test]
594+
fn suggest_custom_arg_value() {
595+
let mut cmd = Command::new("dynamic").arg(clap::Arg::new("custom").long("custom"));
596+
597+
assert_data_eq!(complete!(cmd, "--custom [TAB]"), snapbox::str![""],);
598+
}
599+
593600
#[test]
594601
fn suggest_multi_positional() {
595602
let mut cmd = Command::new("dynamic")

0 commit comments

Comments
 (0)