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:
@@ -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