1
0
mirror of https://github.com/golang/go synced 2024-11-22 18:54:44 -07:00
This commit is contained in:
Jes Cok 2024-02-17 05:11:35 +08:00
parent c768b4532f
commit 9fb1ca1a63

View File

@ -8024,10 +8024,10 @@ func TestValue_Len(t *testing.T) {
}
func TestValue_Comparable(t *testing.T) {
var iNil interface{}
var a int
var s []int
var i interface{} = a
var iNil interface{}
var iSlice interface{} = s
var iArrayFalse interface{} = [2]interface{}{1, map[int]int{}}
var iArrayTrue interface{} = [2]interface{}{1, struct{ I interface{} }{1}}
@ -8037,9 +8037,9 @@ func TestValue_Comparable(t *testing.T) {
deref bool
}{
{
ValueOf(&iNil).Elem(),
ValueOf(&iNil),
true,
true,
false,
},
{
ValueOf(32),