Skip to content

Commit 1beffea

Browse files
committed
Add test
1 parent 362b154 commit 1beffea

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

go/extractor/autobuilder/build-environment_test.go

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,3 +54,9 @@ func TestGetVersionToInstall(t *testing.T) {
5454
}
5555
}
5656
}
57+
58+
func TestMaxGoVersions(t *testing.T) {
59+
if goVersionToInstall.IsNewerThan(maxGoVersion) {
60+
t.Errorf("goVersionToInstall (%s) should not be newer than maxGoVersion (%s).", goVersionToInstall, maxGoVersion)
61+
}
62+
}

0 commit comments

Comments
 (0)