File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change @@ -138,3 +138,54 @@ fn help_alias() {
138138 . unwrap ( ) ;
139139 help_with_man_and_path ( "" , "my-alias" , "build" , Path :: new ( "" ) ) ;
140140}
141+
142+ #[ cargo_test]
143+ fn alias_z_flag_help ( ) {
144+ cargo_process ( "build -Z help" )
145+ . with_stdout_contains (
146+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
147+ )
148+ . run ( ) ;
149+
150+ cargo_process ( "run -Z help" )
151+ . with_stdout_contains (
152+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
153+ )
154+ . run ( ) ;
155+
156+ cargo_process ( "check -Z help" )
157+ . with_stdout_contains (
158+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
159+ )
160+ . run ( ) ;
161+
162+ cargo_process ( "test -Z help" )
163+ . with_stdout_contains (
164+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
165+ )
166+ . run ( ) ;
167+
168+ cargo_process ( "b -Z help" )
169+ . with_stdout_contains (
170+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
171+ )
172+ . run ( ) ;
173+
174+ cargo_process ( "r -Z help" )
175+ . with_stdout_contains (
176+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
177+ )
178+ . run ( ) ;
179+
180+ cargo_process ( "c -Z help" )
181+ . with_stdout_contains (
182+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
183+ )
184+ . run ( ) ;
185+
186+ cargo_process ( "t -Z help" )
187+ . with_stdout_contains (
188+ " -Z allow-features[..]-- Allow *only* the listed unstable features" ,
189+ )
190+ . run ( ) ;
191+ }
You can’t perform that action at this time.
0 commit comments