dsp: make tests parallel
MODIFY
dsp/fourier/fourier_test.go
dsp/fourier/fourier_test.go
@@ -14,6 +14,7 @@ import (
)
func TestFFT(t *testing.T) {
+ t.Parallel()
const tol = 1e-10
rnd := rand.New(rand.NewSource(1))
t.Run("NewFFT", func(t *testing.T) {
@@ -217,6 +218,7 @@ func TestCmplxFFT(t *testing.T) {
}
func TestDCT(t *testing.T) {
+ t.Parallel()
const tol = 1e-10
rnd := rand.New(rand.NewSource(1))
t.Run("NewDCT", func(t *testing.T) {
@@ -259,6 +261,7 @@ func TestDCT(t *testing.T) {
}
func TestDST(t *testing.T) {
+ t.Parallel()
const tol = 1e-10
rnd := rand.New(rand.NewSource(1))
t.Run("NewDST", func(t *testing.T) {
@@ -301,6 +304,7 @@ func TestDST(t *testing.T) {
}
func TestQuarterWaveFFT(t *testing.T) {
+ t.Parallel()
const tol = 1e-10
rnd := rand.New(rand.NewSource(1))
t.Run("NewQuarterWaveFFT", func(t *testing.T) {

MODIFY
dsp/fourier/internal/fftpack/fftpack_test.go
dsp/fourier/internal/fftpack/fftpack_test.go
@@ -18,6 +18,7 @@ import (
)
func TestRfft(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range rfftTests {
// Compute the work and factor slices and compare to known values.
@@ -273,6 +274,7 @@ var rfftTests = []struct {
}
func TestCfft(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range cfftTests {
// Compute the work and factor slices and compare to known values.
@@ -616,6 +618,7 @@ var cfftTests = []struct {
}
func TestSint(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range sintTests {
// Compute the work and factor slices and compare to known values.
@@ -845,6 +848,7 @@ var sintTests = []struct {
}
func TestCost(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range costTests {
// Compute the work and factor slices and compare to known values.
@@ -1097,6 +1101,7 @@ var costTests = []struct {
}
func TestCosq(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range sincosqTests {
// Compute the work and factor slices and compare to known values.
@@ -1183,6 +1188,7 @@ func TestCosq(t *testing.T) {
}
func TestSinq(t *testing.T) {
+ t.Parallel()
const tol = 1e-12
for _, test := range sincosqTests {
// Compute the work and factor slices and compare to known values.

MODIFY
dsp/window/window_test.go
dsp/window/window_test.go
@@ -140,6 +140,7 @@ var gausWindowTests = []struct {
}
func TestWindows(t *testing.T) {
+ t.Parallel()
const tol = 1e-6
for _, test := range windowTests {
@@ -167,6 +168,7 @@ func TestWindows(t *testing.T) {
}
func TestGausWindows(t *testing.T) {
+ t.Parallel()
const tol = 1e-6
for _, test := range gausWindowTests {
@@ -196,6 +198,7 @@ func TestGausWindows(t *testing.T) {
}
func TestWindowsComplex(t *testing.T) {
+ t.Parallel()
const tol = 1e-6
for _, test := range windowTests {
@@ -223,6 +226,7 @@ func TestWindowsComplex(t *testing.T) {
}
func TestGausWindowComplex(t *testing.T) {
+ t.Parallel()
const tol = 1e-6
for _, test := range gausWindowTests {

dsp: make tests parallel