From 01f122e48bd73726eeb5ac87c2d31d31c4199c61 Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Fri, 15 Nov 2013 11:58:23 -0800 Subject: [PATCH] go.tools/go/gcimporter: fix build by adjusting test to new print output R=adonovan, bradfitz CC=golang-dev https://golang.org/cl/26430049 --- go/gcimporter/gcimporter_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/go/gcimporter/gcimporter_test.go b/go/gcimporter/gcimporter_test.go index 11a53c51..4e64e79a 100644 --- a/go/gcimporter/gcimporter_test.go +++ b/go/gcimporter/gcimporter_test.go @@ -128,7 +128,7 @@ var importedObjectTests = []struct { {"math.Pi", "const Pi untyped float"}, {"io.Reader", "type Reader interface{Read(p []byte) (n int, err error)}"}, {"io.ReadWriter", "type ReadWriter interface{Read(p []byte) (n int, err error); Write(p []byte) (n int, err error)}"}, - {"math.Sin", "func math.Sin(x·2 float64) (_ float64)"}, + {"math.Sin", "func Sin(x·2 float64) (_ float64)"}, // TODO(gri) add more tests } @@ -157,7 +157,7 @@ func TestImportedTypes(t *testing.T) { continue } - got := obj.String() + got := types.ObjectString(pkg, obj) if got != test.want { t.Errorf("%s: got %q; want %q", test.name, got, test.want) }