ebiten: Bug fix: Skip the tests correctly

This commit is contained in:
Hajime Hoshi 2020-08-19 22:07:15 +09:00
parent 545f4b0ed3
commit 213fbd283a

View File

@ -41,7 +41,7 @@ func skipTooSlowTests(t *testing.T) bool {
}
if runtime.GOOS == "js" {
v := runtime.Version()
if m := regexp.MustCompile(`^go(\d+)\.(\d+)$`).FindStringSubmatch(v); m != nil {
if m := regexp.MustCompile(`^go(\d+)\.(\d+)`).FindStringSubmatch(v); m != nil {
major, _ := strconv.Atoi(m[1])
minor, _ := strconv.Atoi(m[2])