File tree Expand file tree Collapse file tree
clap_complete/tests/testsuite Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -789,9 +789,7 @@ pos_1_b
789789pos_1_c
790790"# ] ]
791791 ) ;
792-
793792 assert_data_eq ! ( complete!( cmd, "pos_1_a --[TAB]" ) , snapbox:: str ![ "" ] ) ;
794-
795793 assert_data_eq ! (
796794 complete!( cmd, "pos_1_a --format [TAB]" ) ,
797795 snapbox:: str ![ [ r#"
@@ -812,13 +810,32 @@ pos_1_c
812810"# ] ]
813811 ) ;
814812
813+ assert_data_eq ! (
814+ complete!( cmd, "pos_1_a pos_1_b [TAB]" ) ,
815+ snapbox:: str ![ [ r#"
816+ pos_1_a
817+ pos_1_b
818+ pos_1_c
819+ --format
820+ --help Print help
821+ "# ] ]
822+ ) ;
815823 assert_data_eq ! (
816824 complete!( cmd, "pos_1_a pos_1_b --[TAB]" ) ,
817825 snapbox:: str ![ [ r#"
818826--format
819827--help Print help
820828"# ] ]
821829 ) ;
830+ assert_data_eq ! (
831+ complete!( cmd, "pos_1_a pos_1_b --format [TAB]" ) ,
832+ snapbox:: str ![ [ r#"
833+ json
834+ yaml
835+ toml
836+ "# ] ]
837+ ) ;
838+
822839 assert_data_eq ! (
823840 complete!( cmd, "pos_1_a pos_1_b --format json [TAB]" ) ,
824841 snapbox:: str ![ [ r#"
You can’t perform that action at this time.
0 commit comments