1
0
mirror of https://github.com/golang/go synced 2024-11-19 01:44:40 -07:00

go.tools/go/gcimporter: fix build by adjusting test to new print output

R=adonovan, bradfitz
CC=golang-dev
https://golang.org/cl/26430049
This commit is contained in:
Robert Griesemer 2013-11-15 11:58:23 -08:00
parent ae3dd78063
commit 01f122e48b

View File

@ -128,7 +128,7 @@ var importedObjectTests = []struct {
{"math.Pi", "const Pi untyped float"}, {"math.Pi", "const Pi untyped float"},
{"io.Reader", "type Reader interface{Read(p []byte) (n int, err error)}"}, {"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)}"}, {"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 // TODO(gri) add more tests
} }
@ -157,7 +157,7 @@ func TestImportedTypes(t *testing.T) {
continue continue
} }
got := obj.String() got := types.ObjectString(pkg, obj)
if got != test.want { if got != test.want {
t.Errorf("%s: got %q; want %q", test.name, got, test.want) t.Errorf("%s: got %q; want %q", test.name, got, test.want)
} }