]> Cypherpunks repositories - gostls13.git/commit
cmd/gofmt: update TestRewrite to avoid future regressions
authorJoe Tsai <joetsai@digital-static.net>
Fri, 16 Aug 2019 17:42:18 +0000 (10:42 -0700)
committerJoe Tsai <thebrokentoaster@gmail.com>
Fri, 16 Aug 2019 19:54:55 +0000 (19:54 +0000)
commitbb5441de4893c0802e3445250fbcc13c7b8e105c
treea6b9f0784763944813b05ef159b78df3ea27239d
parent4983a0b75b40448d3245811ddcf682a9c86fc975
cmd/gofmt: update TestRewrite to avoid future regressions

CL 162337 changed go/ast to better handle block comments,
but was reverted because it introduced an off-by-one bug.
This CL adds a test case to enforce the correct behavior
so that future changes do not break this again.

Updates #18929
Updates #33538

Change-Id: I2d25c139d007f8db1091b7a48b1dd20c584e2699
Reviewed-on: https://go-review.googlesource.com/c/go/+/190523
Run-TryBot: Joe Tsai <thebrokentoaster@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Robert Griesemer <gri@golang.org>
src/cmd/gofmt/testdata/import.golden
src/cmd/gofmt/testdata/import.input