From 98dc928a4c024f5e1bcbdd58051a075e12f2f48c Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sat, 15 Apr 2017 19:53:28 +0200 Subject: cleanup --- bhash/bhash_test.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'bhash/bhash_test.go') diff --git a/bhash/bhash_test.go b/bhash/bhash_test.go index 1e32290..40c0a76 100644 --- a/bhash/bhash_test.go +++ b/bhash/bhash_test.go @@ -2,7 +2,7 @@ package bhash import ( "bytes" - "fmt" + "strconv" "testing" ) @@ -96,9 +96,10 @@ func TestPbkdf(t *testing.T) { }, } zero := make([]byte, 32) + rounds := 42 for _, tc := range testCases { - t.Run(fmt.Sprint(len(tc)), func(t *testing.T) { - res := Pbkdf(zero, zero, 42, len(tc)) + t.Run(strconv.Itoa(len(tc)), func(t *testing.T) { + res := Pbkdf(zero, zero, rounds, len(tc)) if !bytes.Equal(res, tc) { t.Errorf("got %x, want %x", res, tc) } -- cgit v1.2.3