mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-13 12:32:05 +01:00
ebiten: Bug fix: Skip the tests correctly
This commit is contained in:
parent
545f4b0ed3
commit
213fbd283a
@ -41,7 +41,7 @@ func skipTooSlowTests(t *testing.T) bool {
|
|||||||
}
|
}
|
||||||
if runtime.GOOS == "js" {
|
if runtime.GOOS == "js" {
|
||||||
v := runtime.Version()
|
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])
|
major, _ := strconv.Atoi(m[1])
|
||||||
minor, _ := strconv.Atoi(m[2])
|
minor, _ := strconv.Atoi(m[2])
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user