mirror of
https://github.com/gonum/gonum.git
synced 2025-10-05 15:16:59 +08:00
blas/testblas,optimize: apply staticcheck suggestions
Signed-off-by: Sebastien Binet <binet@cern.ch>
This commit is contained in:
@@ -1434,7 +1434,7 @@ func IdamaxTest(t *testing.T, blasser Idamaxer) {
|
||||
if floats.HasNaN(c.X) {
|
||||
t.Log(s)
|
||||
} else {
|
||||
t.Errorf(s)
|
||||
t.Error(s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -1350,7 +1350,7 @@ func TestNelderMeadOneD(t *testing.T) {
|
||||
var s *Settings
|
||||
result, err := Minimize(p, x, s, m)
|
||||
if err != nil {
|
||||
t.Errorf(err.Error())
|
||||
t.Fatalf("could not minimize: %v", err)
|
||||
}
|
||||
if !floats.EqualApprox(result.X, []float64{0}, 1e-10) {
|
||||
t.Errorf("Minimum not found")
|
||||
|
Reference in New Issue
Block a user