unit: make tests parallel

This commit is contained in:
Egon Elbre
2020-03-14 12:09:06 +02:00
parent 028ce68c53
commit 933b96a6d3
40 changed files with 75 additions and 0 deletions

View File

@@ -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