Commit bb5441de authored by Joe Tsai's avatar Joe Tsai Committed by Joe Tsai

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: default avatarRobert Griesemer <gri@golang.org>
parent 4983a0b7
......@@ -8,6 +8,11 @@ import (
"math"
)
import (
"fmt"
"math"
)
import (
"fmt"
......
......@@ -8,6 +8,9 @@ import (
"io"
)
import("fmt"
"math")
import (
"fmt"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment