Rename files for exit code tests

This commit is contained in:
Robbie McMichael 2025-10-06 20:42:45 +08:00
parent 722b65dc38
commit db2207fba9
5 changed files with 4 additions and 6 deletions

View file

@ -175,8 +175,8 @@ func TestDiff(t *testing.T) {
in string
exitCode int
}{
{in: "testdata/exitcode0", exitCode: 0},
{in: "testdata/exitcode1", exitCode: 1},
{in: "testdata/exitcode.input", exitCode: 1},
{in: "testdata/exitcode.golden", exitCode: 0},
}
for _, tt := range tests {

View file

@ -0,0 +1 @@
package main

1
src/cmd/gofmt/testdata/exitcode.input vendored Normal file
View file

@ -0,0 +1 @@
package main

View file

@ -1,2 +0,0 @@
// Input has correct formatting
package main

View file

@ -1,2 +0,0 @@
// Input has incorrect formatting
package main