diff options
Diffstat (limited to 'src/cmd/gofmt/gofmt_test.go')
-rw-r--r-- | src/cmd/gofmt/gofmt_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/gofmt/gofmt_test.go b/src/cmd/gofmt/gofmt_test.go index 202d0a50c..75a322a6c 100644 --- a/src/cmd/gofmt/gofmt_test.go +++ b/src/cmd/gofmt/gofmt_test.go @@ -82,6 +82,9 @@ var tests = []struct { {"testdata/rewrite3.input", "-r=x->x"}, {"testdata/rewrite4.input", "-r=(x)->x"}, {"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", ""}, |