mirror of
https://github.com/golang/go
synced 2024-11-22 16:54:48 -07:00
base64_test: use new reflect interface (CL 31107)
R=austin DELTA=3 (0 added, 0 deleted, 3 changed) OCL=31112 CL=31282
This commit is contained in:
parent
0d400a7dea
commit
f3ec39d1ea
@ -50,9 +50,9 @@ var bigtest = testpair {
|
||||
}
|
||||
|
||||
func testEqual(t *testing.T, msg string, args ...) bool {
|
||||
v := reflect.NewValue(args).(reflect.StructValue);
|
||||
v1 := v.Field(v.Len() - 2);
|
||||
v2 := v.Field(v.Len() - 1);
|
||||
v := reflect.NewValue(args).(*reflect.StructValue);
|
||||
v1 := v.Field(v.NumField() - 2);
|
||||
v2 := v.Field(v.NumField() - 1);
|
||||
if v1.Interface() != v2.Interface() {
|
||||
t.Errorf(msg, args);
|
||||
return false;
|
||||
|
Loading…
Reference in New Issue
Block a user