summaryrefslogtreecommitdiff
path: root/src/cmd/gofmt/gofmt_test.go
diff options
context:
space:
mode:
authorRobert Griesemer <gri@golang.org>2013-04-03 07:41:26 -0700
committerRobert Griesemer <gri@golang.org>2013-04-03 07:41:26 -0700
commit2ba6ecb3e2bec6b30667c1969772d7e5063f384b (patch)
tree1533b0a7620af6652f92560e5a4888f4b1d9bf3e /src/cmd/gofmt/gofmt_test.go
parentb39fb1dacff4d39b843bf1048ae0b52cb771a5ee (diff)
downloadgo-git-2ba6ecb3e2bec6b30667c1969772d7e5063f384b.tar.gz
go/parser: ParseExpr must accept type expressions
My old code was trying to be too smart. Also: Slightly better error message format for gofmt -r pattern errors. Fixes #4406. R=golang-dev, adg CC=golang-dev https://golang.org/cl/8267045
Diffstat (limited to 'src/cmd/gofmt/gofmt_test.go')
-rw-r--r--src/cmd/gofmt/gofmt_test.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cmd/gofmt/gofmt_test.go b/src/cmd/gofmt/gofmt_test.go
index 8ff00a253a..75a322a6c8 100644
--- a/src/cmd/gofmt/gofmt_test.go
+++ b/src/cmd/gofmt/gofmt_test.go
@@ -84,6 +84,7 @@ var tests = []struct {
{"testdata/rewrite5.input", "-r=x+x->2*x"},
{"testdata/rewrite6.input", "-r=fun(x)->Fun(x)"},
{"testdata/rewrite7.input", "-r=fun(x...)->Fun(x)"},
+ {"testdata/rewrite8.input", "-r=interface{}->int"},
{"testdata/stdin*.input", "-stdin"},
{"testdata/comments.input", ""},
{"testdata/import.input", ""},