sha3: fix TestAppend to loop twice, to match the comments.
Change-Id: I84713a4173d9de4cd3d14991b8a47c9fbae7dcfd Reviewed-on: https://go-review.googlesource.com/8976 Reviewed-by: David Symonds <dsymonds@golang.org>
This commit is contained in:
committed by
David Symonds
parent
5c68cfdf2a
commit
bc65b9074c
+1
-1
@@ -159,7 +159,7 @@ func TestAppend(t *testing.T) {
|
||||
testUnalignedAndGeneric(t, func(impl string) {
|
||||
d := New224()
|
||||
|
||||
for capacity := 2; capacity < 64; capacity += 64 {
|
||||
for capacity := 2; capacity <= 66; capacity += 64 {
|
||||
// The first time around the loop, Sum will have to reallocate.
|
||||
// The second time, it will not.
|
||||
buf := make([]byte, 2, capacity)
|
||||
|
||||
Reference in New Issue
Block a user