fix tests

This commit is contained in:
aeitzman
2023-09-19 13:39:38 -07:00
parent 2f8ab1bf0a
commit 7ed4957b20
2 changed files with 4 additions and 0 deletions

View File

@@ -32,6 +32,8 @@ func goVersion() string {
s = s[:p]
}
return s
} else if p := strings.IndexFunc(s, unicode.IsSpace); p >= 0 {
s = s[:p]
}
notSemverRune := func(r rune) bool {

View File

@@ -5,6 +5,7 @@
package externalaccount
import (
"runtime"
"testing"
"github.com/google/go-cmp/cmp"
@@ -43,4 +44,5 @@ func TestGoVersion(t *testing.T) {
t.Errorf("got(-),want(+):\n%s", diff)
}
}
version = runtime.Version
}