Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dxyinme committed Jan 18, 2024
1 parent 9fe26d8 commit 3ff9ae5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions slice/reverse_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ func TestReverseInt(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
res := Reverse[int](tt.src)
assert.ElementsMatch(t, tt.want, res)
assert.NotSame(t, tt.src, res)
})
}
}
Expand Down Expand Up @@ -81,6 +82,7 @@ func TestReverseStruct(t *testing.T) {
t.Run(tt.name, func(t *testing.T) {
res := Reverse[testStruct](tt.src)
assert.ElementsMatch(t, tt.want, res)
assert.NotSame(t, tt.src, res)
})
}
}
Expand Down

0 comments on commit 3ff9ae5

Please sign in to comment.