mirror of
https://github.com/gonum/gonum.git
synced 2025-10-12 18:40:09 +08:00
mathext: make tests parallel
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user