blas/testblas,optimize: apply staticcheck suggestions

Signed-off-by: Sebastien Binet <binet@cern.ch>
This commit is contained in:
Sebastien Binet
2025-02-13 10:59:38 +01:00
parent 23cc2a72e4
commit 571acd82cc
2 changed files with 2 additions and 2 deletions

View File

@@ -1434,7 +1434,7 @@ func IdamaxTest(t *testing.T, blasser Idamaxer) {
if floats.HasNaN(c.X) { if floats.HasNaN(c.X) {
t.Log(s) t.Log(s)
} else { } else {
t.Errorf(s) t.Error(s)
} }
} }
} }

View File

@@ -1350,7 +1350,7 @@ func TestNelderMeadOneD(t *testing.T) {
var s *Settings var s *Settings
result, err := Minimize(p, x, s, m) result, err := Minimize(p, x, s, m)
if err != nil { if err != nil {
t.Errorf(err.Error()) t.Fatalf("could not minimize: %v", err)
} }
if !floats.EqualApprox(result.X, []float64{0}, 1e-10) { if !floats.EqualApprox(result.X, []float64{0}, 1e-10) {
t.Errorf("Minimum not found") t.Errorf("Minimum not found")