Skip to content

Commit

Permalink
fix fail ut
Browse files Browse the repository at this point in the history
  • Loading branch information
emmansun committed May 23, 2023
1 parent eba02b8 commit b3dd6fd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bs128_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ func BenchmarkTao128(b *testing.B) {

func TestL128(t *testing.T) {
x := make([]byte, 32*BS128.bytes())
buffer := make([]byte, 64*BS128.bytes())
buffer := make([]byte, 32*BS128.bytes())
b := 0x00010203 ^ bits.RotateLeft32(0x00010203, 2) ^ bits.RotateLeft32(0x00010203, 10) ^ bits.RotateLeft32(0x00010203, 18) ^ bits.RotateLeft32(0x00010203, 24)
expected := newUint32x128(b)

Expand All @@ -107,7 +107,7 @@ func TestL128(t *testing.T) {
ret := BS128.l(x, buffer)

if !bytes.Equal(ret, expected) {
t.Fatalf("unexpected rotateLeft32_2 result, expected %x, got %x", expected, ret)
t.Fatalf("unexpected l128 result, expected %x, got %x", expected, ret)
}
}

Expand Down

0 comments on commit b3dd6fd

Please sign in to comment.