testblas: use testing Log instead of log.Println
MODIFY
blas/testblas/level1double.go
blas/testblas/level1double.go
@@ -6,13 +6,11 @@ package testblas
import (
"fmt"
- "log"
+ "math"
+ "testing"
"gonum.org/v1/gonum/blas"
"gonum.org/v1/gonum/floats"
-
- "math"
- "testing"
)
type DoubleOneVectorCase struct {
@@ -1433,7 +1431,7 @@ func IdamaxTest(t *testing.T, blasser Idamaxer) {
if v != c.Idamax {
s := fmt.Sprintf("idamax: mismatch %v: expected %v, found %v", c.Name, c.Idamax, v)
if floats.HasNaN(c.X) {
- log.Println(s)
+ t.Log(s)
} else {
t.Errorf(s)
}

testblas: use testing Log instead of log.Println