Fix arguments order in blowfish_test.go require.Equal assertion

This commit is contained in:
mikrut 2021-04-18 14:05:57 +03:00 committed by Arseny Balobanov
parent 6232acb3ed
commit 7c385ae0bf

View file

@ -39,11 +39,11 @@ func TestBlowfish(t *testing.T) {
b.Encrypt(out[:], in[:]) b.Encrypt(out[:], in[:])
binary.BigEndian.PutUint64(expected[:], testCase.enc) binary.BigEndian.PutUint64(expected[:], testCase.enc)
require.Equal(t, out, expected) require.Equal(t, expected, out)
b.Decrypt(out[:], in[:]) b.Decrypt(out[:], in[:])
binary.BigEndian.PutUint64(expected[:], testCase.dec) binary.BigEndian.PutUint64(expected[:], testCase.dec)
require.Equal(t, out, expected) require.Equal(t, expected, out)
}) })
} }
} }