From 1989a2bebe4e9908fce31d93076bcb291873e87f Mon Sep 17 00:00:00 2001 From: Russ Cox Date: Tue, 2 Feb 2010 18:19:27 -0800 Subject: fix build - misc ... vs ...T fixes TBR=r CC=golang-dev http://codereview.appspot.com/198081 --- src/pkg/encoding/git85/git_test.go | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/pkg/encoding/git85/git_test.go') diff --git a/src/pkg/encoding/git85/git_test.go b/src/pkg/encoding/git85/git_test.go index 4a42282fe..0eb65129d 100644 --- a/src/pkg/encoding/git85/git_test.go +++ b/src/pkg/encoding/git85/git_test.go @@ -8,7 +8,6 @@ import ( "bytes" "io/ioutil" "os" - "reflect" "strings" "testing" ) @@ -17,11 +16,8 @@ type testpair struct { decoded, encoded string } -func testEqual(t *testing.T, msg string, args ...) bool { - v := reflect.NewValue(args).(*reflect.StructValue) - v1 := v.Field(v.NumField() - 2) - v2 := v.Field(v.NumField() - 1) - if v1.Interface() != v2.Interface() { +func testEqual(t *testing.T, msg string, args ...interface{}) bool { + if args[len(args)-2] != args[len(args)-1] { t.Errorf(msg, args) return false } -- cgit v1.2.3