@@ -521,6 +521,10 @@ fn test_total_auto() {
521
521
. args ( & [ "lorem_ipsum.txt" , "--total=auto" ] )
522
522
. run ( )
523
523
. stdout_is ( " 13 109 772 lorem_ipsum.txt\n " ) ;
524
+ new_ucmd ! ( )
525
+ . args ( & [ "lorem_ipsum.txt" , "--tot=au" ] )
526
+ . run ( )
527
+ . stdout_is ( " 13 109 772 lorem_ipsum.txt\n " ) ;
524
528
525
529
new_ucmd ! ( )
526
530
. args ( & [ "lorem_ipsum.txt" , "moby_dick.txt" , "--total=auto" ] )
@@ -541,6 +545,13 @@ fn test_total_always() {
541
545
" 13 109 772 lorem_ipsum.txt\n " ,
542
546
" 13 109 772 total\n " ,
543
547
) ) ;
548
+ new_ucmd ! ( )
549
+ . args ( & [ "lorem_ipsum.txt" , "--total=al" ] )
550
+ . run ( )
551
+ . stdout_is ( concat ! (
552
+ " 13 109 772 lorem_ipsum.txt\n " ,
553
+ " 13 109 772 total\n " ,
554
+ ) ) ;
544
555
545
556
new_ucmd ! ( )
546
557
. args ( & [ "lorem_ipsum.txt" , "moby_dick.txt" , "--total=always" ] )
@@ -566,6 +577,13 @@ fn test_total_never() {
566
577
" 13 109 772 lorem_ipsum.txt\n " ,
567
578
" 18 204 1115 moby_dick.txt\n " ,
568
579
) ) ;
580
+ new_ucmd ! ( )
581
+ . args ( & [ "lorem_ipsum.txt" , "moby_dick.txt" , "--total=n" ] )
582
+ . run ( )
583
+ . stdout_is ( concat ! (
584
+ " 13 109 772 lorem_ipsum.txt\n " ,
585
+ " 18 204 1115 moby_dick.txt\n " ,
586
+ ) ) ;
569
587
}
570
588
571
589
#[ test]
@@ -579,6 +597,10 @@ fn test_total_only() {
579
597
. args ( & [ "lorem_ipsum.txt" , "moby_dick.txt" , "--total=only" ] )
580
598
. run ( )
581
599
. stdout_is ( "31 313 1887\n " ) ;
600
+ new_ucmd ! ( )
601
+ . args ( & [ "lorem_ipsum.txt" , "moby_dick.txt" , "--t=o" ] )
602
+ . run ( )
603
+ . stdout_is ( "31 313 1887\n " ) ;
582
604
}
583
605
584
606
#[ test]
0 commit comments