13 lines
198 B
Go
13 lines
198 B
Go
package assert
|
|
|
|
import (
|
|
"reflect"
|
|
"testing"
|
|
)
|
|
|
|
func Equals[T any](t *testing.T, got, want T) {
|
|
if !reflect.DeepEqual(got, want) {
|
|
errorf(t, "%s got %v, but want %v", t.Name(), got, want)
|
|
}
|
|
}
|