testblas: use testing Log instead of log.Println
@@ -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)
}
