Commit f3ec39d1 authored by Russ Cox's avatar Russ Cox

base64_test: use new reflect interface (CL 31107)

R=austin
DELTA=3  (0 added, 0 deleted, 3 changed)
OCL=31112
CL=31282
parent 0d400a7d
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment