Go: Add unit test to sanity check HasGoVersion

This commit is contained in:
Michael B. Gale
2024-03-27 15:15:40 +00:00
parent ab255d70b5
commit 6ea99825be

View File

@@ -14,3 +14,9 @@ func TestParseGoVersion(t *testing.T) {
}
}
}
func TestHasGoVersion(t *testing.T) {
if HasGoVersion("1.21") {
t.Error("Exepected HasGoVersion(\"1.21\" to be false, but got true)")
}
}