Skip to content

Commit

Permalink
remove pointer slice
Browse files Browse the repository at this point in the history
  • Loading branch information
weiihann committed Jan 21, 2025
1 parent 6daf85e commit e8adad8
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions utils/slices_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,4 @@ func TestUnique(t *testing.T) {
actual := Unique(input)
assert.Equal(t, []string{"a", "b", "c"}, actual)
})

t.Run("slice of pointers returns unchanged", func(t *testing.T) {
a, b := new(int), new(int)
input := []*int{a, b, a, b}
actual := Unique(input)
assert.Equal(t, input, actual)
})
}

0 comments on commit e8adad8

Please sign in to comment.