mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: sum: ensure the last of -r and -s wins
Reported at https://github.com/uutils/coreutils/issues/15986 * tests/cksum/sum.pl: Add test cases. Link: https://github.com/coreutils/coreutils/pull/423
This commit is contained in:
1 parent
e2d537ace6
commit
98a6a87701
1 file changed
+4
@@ -42,6 +42,10 @@ my @Tests =
|
||||
['b-r-2k', '-r', {IN=> {f=> $in_2k}}, {OUT=>"65223 2 f\n"}],
|
||||
['b-s-2k', '-s', {IN=> {f=> $in_2k}}, {OUT=>"4099 4 f\n"}],
|
||||
|
||||
# The last of -r and -s wins.
|
||||
['r-last-1k', '-s -r', {IN=> {f=> $in_1k}}, {OUT=>"65409 1 f\n"}],
|
||||
['s-last-1k', '-r -s', {IN=> {f=> $in_1k}}, {OUT=>"33793 2 f\n"}],
|
||||
|
||||
['1s', '-s', {IN=> {f=> ''}}, {OUT=>"0 0 f\n"}],
|
||||
['2s', '-s', {IN=> {f=> 'a'}}, {OUT=>"97 1 f\n"}],
|
||||
['3s', '-s', {IN=> {f=> 'abc'}}, {OUT=>"294 1 f\n"}],
|
||||
|
||||
Reference in new issue
Block a user