diff options
Diffstat (limited to 'src/cmd/compile/internal/types2/api_test.go')
-rw-r--r-- | src/cmd/compile/internal/types2/api_test.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cmd/compile/internal/types2/api_test.go b/src/cmd/compile/internal/types2/api_test.go index c1327b179c..d9647b9432 100644 --- a/src/cmd/compile/internal/types2/api_test.go +++ b/src/cmd/compile/internal/types2/api_test.go @@ -151,7 +151,7 @@ func TestValuesInfo(t *testing.T) { // look for expression var expr syntax.Expr for e := range info.Types { - if syntax.ShortString(e) == test.expr { + if syntax.String(e) == test.expr { expr = e break } @@ -306,7 +306,7 @@ func TestTypesInfo(t *testing.T) { // look for expression type var typ Type for e, tv := range info.Types { - if syntax.ShortString(e) == test.expr { + if syntax.String(e) == test.expr { typ = tv.Type break } @@ -454,7 +454,7 @@ func TestInferredInfo(t *testing.T) { default: panic(fmt.Sprintf("unexpected call expression type %T", call)) } - if syntax.ShortString(fun) == test.fun { + if syntax.String(fun) == test.fun { targs = inf.Targs sig = inf.Sig break @@ -733,8 +733,8 @@ func TestPredicatesInfo(t *testing.T) { // look for expression predicates got := "<missing>" for e, tv := range info.Types { - //println(name, syntax.ShortString(e)) - if syntax.ShortString(e) == test.expr { + //println(name, syntax.String(e)) + if syntax.String(e) == test.expr { got = predString(tv) break } |