Added support for slice comparison
This commit is contained in:
parent
77a33a46a4
commit
3ff7ac9a08
2 changed files with 2 additions and 1 deletions
2
Equal.go
2
Equal.go
|
@ -26,7 +26,7 @@ func NotEqual[T comparable](t testing.TB, a T, b T) {
|
|||
}
|
||||
|
||||
// DeepEqual asserts that the two parameters are deeply equal.
|
||||
func DeepEqual[T comparable](t testing.TB, a T, b T) {
|
||||
func DeepEqual[T any](t testing.TB, a T, b T) {
|
||||
if reflect.DeepEqual(a, b) {
|
||||
return
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue