@@ -33,7 +33,7 @@ CompoundTitle: Title Case Example
3333 fn run_search ( dir : & Path , styles : & str ) -> String {
3434 let output = std:: process:: Command :: new ( env ! ( "CARGO_BIN_EXE_renamify" ) )
3535 . current_dir ( dir)
36- . args ( & [
36+ . args ( [
3737 "search" ,
3838 "test case" , // Search for "test case" in various forms
3939 "--only-styles" ,
@@ -178,7 +178,7 @@ mixed_caseCASE
178178 fn run_search ( dir : & Path , styles : & str ) -> String {
179179 let output = std:: process:: Command :: new ( env ! ( "CARGO_BIN_EXE_renamify" ) )
180180 . current_dir ( dir)
181- . args ( & [
181+ . args ( [
182182 "search" ,
183183 "case" , // Search for single word "case"
184184 "--only-styles" ,
@@ -287,7 +287,7 @@ TEST_CASE
287287 // Test with multiple styles selected
288288 let output = std:: process:: Command :: new ( env ! ( "CARGO_BIN_EXE_renamify" ) )
289289 . current_dir ( temp_dir. path ( ) )
290- . args ( & [
290+ . args ( [
291291 "search" ,
292292 "test case" ,
293293 "--only-styles" ,
@@ -347,8 +347,8 @@ let another-var = 10; // unrelated kebab
347347
348348 // Test 1: Get results for lower style alone (replacing original)
349349 // For now, we'll use snake as the baseline test
350- let snake_baseline_output = std:: process:: Command :: new ( & get_cli_path ( ) )
351- . args ( & [
350+ let snake_baseline_output = std:: process:: Command :: new ( get_cli_path ( ) )
351+ . args ( [
352352 "search" ,
353353 "case" ,
354354 "--only-styles" ,
@@ -364,8 +364,8 @@ let another-var = 10; // unrelated kebab
364364 count_matches ( & String :: from_utf8 ( snake_baseline_output. stdout ) . unwrap ( ) ) ;
365365
366366 // Test 2: Get results for snake style alone
367- let snake_output = std:: process:: Command :: new ( & get_cli_path ( ) )
368- . args ( & [
367+ let snake_output = std:: process:: Command :: new ( get_cli_path ( ) )
368+ . args ( [
369369 "search" ,
370370 "case" ,
371371 "--only-styles" ,
@@ -380,8 +380,8 @@ let another-var = 10; // unrelated kebab
380380 let snake_matches = count_matches ( & String :: from_utf8 ( snake_output. stdout ) . unwrap ( ) ) ;
381381
382382 // Test 3: Get results for kebab style alone
383- let kebab_output = std:: process:: Command :: new ( & get_cli_path ( ) )
384- . args ( & [
383+ let kebab_output = std:: process:: Command :: new ( get_cli_path ( ) )
384+ . args ( [
385385 "search" ,
386386 "case" ,
387387 "--only-styles" ,
@@ -396,8 +396,8 @@ let another-var = 10; // unrelated kebab
396396 let kebab_matches = count_matches ( & String :: from_utf8 ( kebab_output. stdout ) . unwrap ( ) ) ;
397397
398398 // Test 4: Get results for combined styles
399- let combined_output = std:: process:: Command :: new ( & get_cli_path ( ) )
400- . args ( & [
399+ let combined_output = std:: process:: Command :: new ( get_cli_path ( ) )
400+ . args ( [
401401 "search" ,
402402 "case" ,
403403 "--only-styles" ,
@@ -450,8 +450,8 @@ let unrelated_variable = 6; // should not match any "case" search
450450 }
451451
452452 // Test that lower+snake doesn't find camel/pascal matches
453- let output = std:: process:: Command :: new ( & get_cli_path ( ) )
454- . args ( & [
453+ let output = std:: process:: Command :: new ( get_cli_path ( ) )
454+ . args ( [
455455 "search" ,
456456 "case" ,
457457 "--only-styles" ,
@@ -471,7 +471,7 @@ let unrelated_variable = 6; // should not match any "case" search
471471 // When searching for single word "case" with lower+snake styles,
472472 // both styles generate "case" as the pattern, so it matches all instances of "case"
473473 // This includes "case" standalone and "case" within compound words
474- assert ! ( matches. len ( ) > 0 , "Should find matches for lower+snake" ) ;
474+ assert ! ( ! matches. is_empty ( ) , "Should find matches for lower+snake" ) ;
475475
476476 // Verify that all matches are for the "case" pattern
477477 let all_case_matches = matches
@@ -526,8 +526,8 @@ let Test Case = 8; // title
526526
527527 // Get individual results for each style
528528 for style in & all_styles {
529- let output = std:: process:: Command :: new ( & get_cli_path ( ) )
530- . args ( & [ "search" , "case" , "--only-styles" , style, "--output" , "json" ] )
529+ let output = std:: process:: Command :: new ( get_cli_path ( ) )
530+ . args ( [ "search" , "case" , "--only-styles" , style, "--output" , "json" ] )
531531 . current_dir ( temp_dir. path ( ) )
532532 . output ( )
533533 . expect ( "Failed to execute command" ) ;
@@ -551,8 +551,8 @@ let Test Case = 8; // title
551551 ] ;
552552
553553 for ( combo_str, combo_styles) in combinations {
554- let output = std:: process:: Command :: new ( & get_cli_path ( ) )
555- . args ( & [
554+ let output = std:: process:: Command :: new ( get_cli_path ( ) )
555+ . args ( [
556556 "search" ,
557557 "case" ,
558558 "--only-styles" ,
0 commit comments