@@ -387,18 +387,23 @@ fn test_option_keep() {
387387
388388#[ test]
389389fn test_option_quiet ( ) {
390- let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
391- ucmd. args ( & [ "--quiet" , "numbers50.txt" , "13" , "%25%" , "/0$/" ] )
392- . succeeds ( )
393- . no_stdout ( ) ;
390+ for arg in [ "-q" , "--quiet" , "-s" , "--silent" ] {
391+ let ( at, mut ucmd) = at_and_ucmd ! ( ) ;
392+ ucmd. args ( & [ arg, "numbers50.txt" , "13" , "%25%" , "/0$/" ] )
393+ . succeeds ( )
394+ . no_stdout ( ) ;
394395
395- let count = glob ( & at. plus_as_string ( "xx*" ) )
396- . expect ( "there should be splits created" )
397- . count ( ) ;
398- assert_eq ! ( count, 3 ) ;
399- assert_eq ! ( at. read( "xx00" ) , generate( 1 , 13 ) ) ;
400- assert_eq ! ( at. read( "xx01" ) , generate( 25 , 30 ) ) ;
401- assert_eq ! ( at. read( "xx02" ) , generate( 30 , 51 ) ) ;
396+ let count = glob ( & at. plus_as_string ( "xx*" ) )
397+ . expect ( "there should be splits created" )
398+ . count ( ) ;
399+ assert_eq ! ( count, 3 ) ;
400+ assert_eq ! ( at. read( "xx00" ) , generate( 1 , 13 ) ) ;
401+ assert_eq ! ( at. read( "xx01" ) , generate( 25 , 30 ) ) ;
402+ assert_eq ! ( at. read( "xx02" ) , generate( 30 , 51 ) ) ;
403+ at. remove ( "xx00" ) ;
404+ at. remove ( "xx01" ) ;
405+ at. remove ( "xx02" ) ;
406+ }
402407}
403408
404409#[ test]
0 commit comments