From: Jim Meyering Date: Sun, 23 Oct 2005 14:32:18 +0000 (+0000) Subject: (million-a): Add the "million a's" test (one of the FIPS test vectors). X-Git-Tag: v6.0~1517 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d895ec806d19f1d68254f02e7f6a34c91b1609e;p=thirdparty%2Fcoreutils.git (million-a): Add the "million a's" test (one of the FIPS test vectors). --- diff --git a/tests/sha1sum/basic-1 b/tests/sha1sum/basic-1 index 04725849b8..d9a9206c9f 100755 --- a/tests/sha1sum/basic-1 +++ b/tests/sha1sum/basic-1 @@ -37,6 +37,8 @@ my @Tests = {OUT=>"761c457bf73b14d27e9e9265c46f4b4dda11f940 f\n"}], ['s7', {IN=> {f=> '1234567890' x 8}}, {OUT=>"50abf5706a150990a08b2c5ea40fa0e585554732 f\n"}], + ['million-a', {IN=> {f=> 'a' x 1000000}}, + {OUT=>"34aa973cd4c4daa4f61eeb2bdbad27316534016f f\n"}], ['bs-sha', {IN=> {".\\foo"=> ''}}, {OUT=>"\\$sha_degenerate .\\\\foo\n"}], # The sha1sum and md5sum drivers share a lot of code.