mirror of
https://github.com/gonum/gonum.git
synced 2025-11-02 19:34:01 +08:00
unit: make tests parallel
This commit is contained in:
@@ -12,6 +12,7 @@ import (
|
||||
)
|
||||
|
||||
func TestFrequency(t *testing.T) {
|
||||
t.Parallel()
|
||||
for _, value := range []float64{-1, 0, 1} {
|
||||
var got Frequency
|
||||
err := got.From(Frequency(value).Unit())
|
||||
@@ -32,6 +33,7 @@ func TestFrequency(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestFrequencyFormat(t *testing.T) {
|
||||
t.Parallel()
|
||||
for _, test := range []struct {
|
||||
value Frequency
|
||||
format string
|
||||
|
||||
Reference in New Issue
Block a user