aboutsummaryrefslogtreecommitdiff
path: root/bhash
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2017-04-15 19:53:28 +0200
committerDimitri Sokolyuk <demon@dim13.org>2017-04-15 19:53:28 +0200
commit98dc928a4c024f5e1bcbdd58051a075e12f2f48c (patch)
treed43f2d119de47486fa71d51ef00f1573c146ec0c /bhash
parent62bb97882e750ac65244b5788b4305bbbbd086f1 (diff)
cleanup
Diffstat (limited to 'bhash')
-rw-r--r--bhash/bhash_test.go7
1 files changed, 4 insertions, 3 deletions
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)
}