diff options
author | Russ Cox <rsc@golang.org> | 2010-02-02 18:19:27 -0800 |
---|---|---|
committer | Russ Cox <rsc@golang.org> | 2010-02-02 18:19:27 -0800 |
commit | 1989a2bebe4e9908fce31d93076bcb291873e87f (patch) | |
tree | 8fa23558f4f7aece526d382fd27f3f1d449aaca0 /src/pkg/encoding/git85/git_test.go | |
parent | 3f3ae50ab8a0c20d079ee0411cfee83d8c399a1b (diff) | |
download | golang-1989a2bebe4e9908fce31d93076bcb291873e87f.tar.gz |
fix build - misc ... vs ...T fixes
TBR=r
CC=golang-dev
http://codereview.appspot.com/198081
Diffstat (limited to 'src/pkg/encoding/git85/git_test.go')
-rw-r--r-- | src/pkg/encoding/git85/git_test.go | 8 |
1 files changed, 2 insertions, 6 deletions
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 } |