Commit b0398839 authored by Russ Cox's avatar Russ Cox

gofmt: add else test

R=gri
CC=golang-dev
https://golang.org/cl/4978065
parent e81d7210
......@@ -73,6 +73,7 @@ var tests = []struct {
{"gofmt.go", ""},
{"gofmt_test.go", ""},
{"testdata/composites.input", "-s"},
{"testdata/old.input", ""},
{"testdata/rewrite1.input", "-r=Foo->Bar"},
{"testdata/rewrite2.input", "-r=int->bool"},
{"testdata/stdin*.input", "-stdin"},
......
package P
func f() {
if x {
y
} else {
z
}
}
package P
func f() {
if x {
y
} else
z
}
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