mathext: make tests parallel

This commit is contained in:
Egon Elbre
2020-03-14 12:59:14 +02:00
parent 190873a112
commit fd34e19f46
14 changed files with 39 additions and 0 deletions

View File

@@ -84,6 +84,7 @@ var betaTests = []struct {
}
func TestBeta(t *testing.T) {
t.Parallel()
for i, test := range betaTests {
v := mathext.Beta(test.p, test.q)
testOK := func(x float64) bool {
@@ -142,6 +143,7 @@ func BenchmarkBeta2(b *testing.B) {
}
func TestLbeta(t *testing.T) {
t.Parallel()
for i, test := range betaTests {
want := math.Log(test.want)
v := mathext.Lbeta(test.p, test.q)