testblas: use testing Log instead of log.Println

This commit is contained in:
Dan Kortschak
2019-01-19 09:42:56 +10:30
parent 246a5a92a2
commit d54847ab4d

View File

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