forked from remote/oauth2
fix tests
This commit is contained in:
@@ -32,6 +32,8 @@ func goVersion() string {
|
|||||||
s = s[:p]
|
s = s[:p]
|
||||||
}
|
}
|
||||||
return s
|
return s
|
||||||
|
} else if p := strings.IndexFunc(s, unicode.IsSpace); p >= 0 {
|
||||||
|
s = s[:p]
|
||||||
}
|
}
|
||||||
|
|
||||||
notSemverRune := func(r rune) bool {
|
notSemverRune := func(r rune) bool {
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
package externalaccount
|
package externalaccount
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"runtime"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
@@ -43,4 +44,5 @@ func TestGoVersion(t *testing.T) {
|
|||||||
t.Errorf("got(-),want(+):\n%s", diff)
|
t.Errorf("got(-),want(+):\n%s", diff)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
version = runtime.Version
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user