mirror of
https://github.com/gonum/gonum.git
synced 2025-11-02 19:34:01 +08:00
testblas: use testing Log instead of log.Println
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user