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)
	}
}