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

@@ -12,6 +12,7 @@ import (
// TestCompleteKE checks if the Legendre's relation for m=0.0001(0.0001)0.9999
// is satisfied with accuracy 1e-14.
func TestCompleteKE(t *testing.T) {
t.Parallel()
const tol = 1.0e-14
for m := 1; m <= 9999; m++ {
@@ -34,6 +35,7 @@ func TestCompleteKE(t *testing.T) {
// K(m) = B(m) + D(m),
// E(m) = B(m) + (1-m)D(m).
func TestCompleteBD(t *testing.T) {
t.Parallel()
const tol = 1.0e-14
for m := 1; m <= 9999; m++ {