src/client/pkg/require/require.go
func Equal(tb testing.TB, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	eV, aV := reflect.ValueOf(expected), reflect.ValueOf(actual)
	if eV.Type() != aV.Type() {
		fatal(
			tb,
			msgAndArgs,
			"Not equal: %T(%#v) (expected)\n"+
				"        != %T(%#v) (actual)", expected, expected, actual, actual)
	}
	if !reflect.DeepEqual(expected, actual) {
		fatal(
			tb,
			msgAndArgs,
			"Not equal: %#v (expected)\n"+
				"        != %#v (actual)", expected, actual)
	}
}
func Equal(tb testing.TB, expected interface{}, actual interface{}, msgAndArgs ...interface{}) {
	tb.Helper()
	eV, aV := reflect.ValueOf(expected), reflect.ValueOf(actual)
	if eV.Type() != aV.Type() {
		fatal(
			tb,
			msgAndArgs,
			"Not equal: %T(%#v) (expected)\n"+
				"        != %T(%#v) (actual)", expected, expected, actual, actual)
	}
	if !reflect.DeepEqual(expected, actual) {
		fatal(
			tb,
			msgAndArgs,
			"Not equal: %#v (expected)\n"+
				"        != %#v (actual)", expected, actual)
	}
}
func Equal ( tb testing . TB , expected interface { } , actual interface { } , msgAndArgs ... interface { } ) { tb . Helper ( ) eV , aV := reflect . ValueOf ( expected ) , reflect . ValueOf ( actual ) if eV . Type ( ) != aV . Type ( ) { fatal ( tb , msgAndArgs , " \n " + " " , expected , expected , actual , actual ) } if ! reflect . DeepEqual ( expected , actual ) { fatal ( tb , msgAndArgs , " \n " + " " , expected , actual ) } }
// Equal checks equality of two values.
Equal checks equality of two values .