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