@@ -4210,7 +4210,7 @@ func TestStructOfExportRules(t *testing.T) {
4210
4210
}
4211
4211
exported := isExported (n )
4212
4212
if exported != test .exported {
4213
- t .Errorf ("test-%d: got exported=%v want exported=%v" , exported , test .exported )
4213
+ t .Errorf ("test-%d: got exported=%v want exported=%v" , i , exported , test .exported )
4214
4214
}
4215
4215
})
4216
4216
}
@@ -4520,7 +4520,7 @@ func TestStructOfWithInterface(t *testing.T) {
4520
4520
if table .impl {
4521
4521
t .Errorf ("test-%d: type=%v fails to implement Iface.\n " , i , table .typ )
4522
4522
} else {
4523
- t .Errorf ("test-%d: type=%v should NOT implement Iface\n " , table .typ )
4523
+ t .Errorf ("test-%d: type=%v should NOT implement Iface\n " , i , table .typ )
4524
4524
}
4525
4525
continue
4526
4526
}
@@ -4748,7 +4748,7 @@ func TestFuncOf(t *testing.T) {
4748
4748
if len (args ) != 1 {
4749
4749
t .Errorf ("args == %v, want exactly one arg" , args )
4750
4750
} else if args [0 ].Type () != TypeOf (K ("" )) {
4751
- t .Errorf ("args[0] is type %v, want %v" , args [0 ].Type , TypeOf (K ("" )))
4751
+ t .Errorf ("args[0] is type %v, want %v" , args [0 ].Type () , TypeOf (K ("" )))
4752
4752
} else if args [0 ].String () != "gopher" {
4753
4753
t .Errorf ("args[0] = %q, want %q" , args [0 ].String (), "gopher" )
4754
4754
}
@@ -4760,7 +4760,7 @@ func TestFuncOf(t *testing.T) {
4760
4760
if len (outs ) != 1 {
4761
4761
t .Fatalf ("v.Call returned %v, want exactly one result" , outs )
4762
4762
} else if outs [0 ].Type () != TypeOf (V (0 )) {
4763
- t .Fatalf ("c.Call[0] is type %v, want %v" , outs [0 ].Type , TypeOf (V (0 )))
4763
+ t .Fatalf ("c.Call[0] is type %v, want %v" , outs [0 ].Type () , TypeOf (V (0 )))
4764
4764
}
4765
4765
f := outs [0 ].Float ()
4766
4766
if f != 3.14 {
0 commit comments