diff --git a/clap_complete/tests/testsuite/dynamic.rs b/clap_complete/tests/testsuite/dynamic.rs index 0c0fe22b720..b909159134b 100644 --- a/clap_complete/tests/testsuite/dynamic.rs +++ b/clap_complete/tests/testsuite/dynamic.rs @@ -590,6 +590,13 @@ val3 ); } +#[test] +fn suggest_custom_arg_value() { + let mut cmd = Command::new("dynamic").arg(clap::Arg::new("custom").long("custom")); + + assert_data_eq!(complete!(cmd, "--custom [TAB]"), snapbox::str![""],); +} + #[test] fn suggest_multi_positional() { let mut cmd = Command::new("dynamic")