mirror of
https://github.com/golang/go
synced 2024-11-24 22:57:57 -07:00
parent
e81d72100a
commit
b039883946
@ -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"},
|
||||
|
9
src/cmd/gofmt/testdata/old.golden
vendored
Normal file
9
src/cmd/gofmt/testdata/old.golden
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
package P
|
||||
|
||||
func f() {
|
||||
if x {
|
||||
y
|
||||
} else {
|
||||
z
|
||||
}
|
||||
}
|
8
src/cmd/gofmt/testdata/old.input
vendored
Normal file
8
src/cmd/gofmt/testdata/old.input
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
package P
|
||||
|
||||
func f() {
|
||||
if x {
|
||||
y
|
||||
} else
|
||||
z
|
||||
}
|
Loading…
Reference in New Issue
Block a user