@@ -558,27 +558,15 @@ mod test {
558558 #[ test]
559559 fn test_normalize_legacy_option_short_options ( ) {
560560 // Single-letter short options should remain unchanged
561- assert_eq ! (
562- normalize_legacy_option( "-o" . to_string( ) ) ,
563- "-o" . to_string( )
564- ) ;
565- assert_eq ! (
566- normalize_legacy_option( "-s" . to_string( ) ) ,
567- "-s" . to_string( )
568- ) ;
561+ assert_eq ! ( normalize_legacy_option( "-o" . to_string( ) ) , "-o" . to_string( ) ) ;
562+ assert_eq ! ( normalize_legacy_option( "-s" . to_string( ) ) , "-s" . to_string( ) ) ;
569563 }
570564
571565 #[ test]
572566 fn test_normalize_legacy_option_numeric_options ( ) {
573567 // Numeric options should remain unchanged (these are valid ccextractor options)
574- assert_eq ! (
575- normalize_legacy_option( "-1" . to_string( ) ) ,
576- "-1" . to_string( )
577- ) ;
578- assert_eq ! (
579- normalize_legacy_option( "-2" . to_string( ) ) ,
580- "-2" . to_string( )
581- ) ;
568+ assert_eq ! ( normalize_legacy_option( "-1" . to_string( ) ) , "-1" . to_string( ) ) ;
569+ assert_eq ! ( normalize_legacy_option( "-2" . to_string( ) ) , "-2" . to_string( ) ) ;
582570 assert_eq ! (
583571 normalize_legacy_option( "-12" . to_string( ) ) ,
584572 "-12" . to_string( )
@@ -605,19 +593,10 @@ mod test {
605593 #[ test]
606594 fn test_normalize_legacy_option_edge_cases ( ) {
607595 // Empty string
608- assert_eq ! (
609- normalize_legacy_option( "" . to_string( ) ) ,
610- "" . to_string( )
611- ) ;
596+ assert_eq ! ( normalize_legacy_option( "" . to_string( ) ) , "" . to_string( ) ) ;
612597 // Just a dash
613- assert_eq ! (
614- normalize_legacy_option( "-" . to_string( ) ) ,
615- "-" . to_string( )
616- ) ;
598+ assert_eq ! ( normalize_legacy_option( "-" . to_string( ) ) , "-" . to_string( ) ) ;
617599 // Double dash alone (end of options marker)
618- assert_eq ! (
619- normalize_legacy_option( "--" . to_string( ) ) ,
620- "--" . to_string( )
621- ) ;
600+ assert_eq ! ( normalize_legacy_option( "--" . to_string( ) ) , "--" . to_string( ) ) ;
622601 }
623602}
0 commit comments