mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +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" {
|
||||
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])
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user