From bc65b9074c1a76699f4ef665802d4a1c56e22495 Mon Sep 17 00:00:00 2001 From: Glenn Brown Date: Wed, 15 Apr 2015 17:38:08 -0700 Subject: [PATCH] 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 --- sha3/sha3_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sha3/sha3_test.go b/sha3/sha3_test.go index cbf811d..caf72f2 100644 --- a/sha3/sha3_test.go +++ b/sha3/sha3_test.go @@ -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)