Skip to content

Commit

Permalink
Fix:revert changes from copied files from upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
mertakman committed Sep 30, 2024
1 parent 709efd6 commit e13ee5f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/subtle/aliasing_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,13 +32,13 @@ var aliasingTests = []struct {
}

func testAliasing(t *testing.T, i int, x, y []byte, anyOverlap, inexactOverlap bool) {
isOverlapping := subtle.AnyOverlap(x, y)
if isOverlapping != anyOverlap {
t.Errorf("%d: wrong AnyOverlap result, expected %v, got %v", i, anyOverlap, isOverlapping)
any := subtle.AnyOverlap(x, y)
if any != anyOverlap {
t.Errorf("%d: wrong AnyOverlap result, expected %v, got %v", i, anyOverlap, any)
}
inexact := subtle.InexactOverlap(x, y)
if inexact != inexactOverlap {
t.Errorf("%d: wrong InexactOverlap result, expected %v, got %v", i, inexactOverlap, isOverlapping)
t.Errorf("%d: wrong InexactOverlap result, expected %v, got %v", i, inexactOverlap, any)
}
}

Expand Down

0 comments on commit e13ee5f

Please sign in to comment.