Fix ahash test Sprintf's.

This commit is contained in:
Kyle Isom 2017-11-21 13:00:20 -08:00
parent 9ac378eaa5
commit 8b638065d1
1 changed files with 2 additions and 2 deletions

View File

@ -97,7 +97,7 @@ func TestHash32(t *testing.T) {
h.Write(data)
sum, ok = h.Sum32()
assert.BoolT(t, ok, algo+" should be able to return a Sum32")
assert.BoolT(t, expected != sum, fmt.Sprintf("%s returned %d but shouldn't have", algo, sum, expected))
assert.BoolT(t, expected != sum, fmt.Sprintf("%s returned %d but shouldn't have", algo, sum))
}
func TestHash64(t *testing.T) {
@ -129,7 +129,7 @@ func TestHash64(t *testing.T) {
h.Write(data)
sum, ok = h.Sum64()
assert.BoolT(t, ok, algo+" should be able to return a Sum64")
assert.BoolT(t, expected != sum, fmt.Sprintf("%s returned %d but shouldn't have", algo, sum, expected))
assert.BoolT(t, expected != sum, fmt.Sprintf("%s returned %d but shouldn't have", algo, sum))
}
func TestListLengthSanity(t *testing.T) {