pathiv: fix test failure on Go 1.6

Travis failed on Go 1.6.3 with this error:

	internal/pathiv/pathiv_test.go:20: no args in Error call

This change should solve the problem and provides a better error
message on (real) test failure.
This commit is contained in:
Jakob Unterwurzacher 2017-05-31 08:21:36 +02:00
parent 1e598e96fc
commit fc2a5f5ab0

View File

@ -17,7 +17,7 @@ func TestBlockIV(t *testing.T) {
b27 := BlockIV(b0, 0x27) b27 := BlockIV(b0, 0x27)
expected, _ := hex.DecodeString("00000000000000000000000000000027") expected, _ := hex.DecodeString("00000000000000000000000000000027")
if !bytes.Equal(b27, expected) { if !bytes.Equal(b27, expected) {
t.Error() t.Errorf("\nhave=%s\nwant=%s", hex.EncodeToString(b27), hex.EncodeToString(expected))
} }
bff := bytes.Repeat([]byte{0xff}, 16) bff := bytes.Repeat([]byte{0xff}, 16)
b28 := BlockIV(bff, 0x28) b28 := BlockIV(bff, 0x28)