This is an automated email from the ASF dual-hosted git repository.
aherbert pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-math.git
The following commit(s) were added to refs/heads/master by this push:
new a511e8c98 Pass exception cause to Assertions.fail in
SimplexOptimizerTest
a511e8c98 is described below
commit a511e8c98ff3fe2d4bf1c3e3a9aad2bdef8584a2
Author: siddiqui irshad <[email protected]>
AuthorDate: Fri Oct 30 18:47:05 2026 +0530
Pass exception cause to Assertions.fail in SimplexOptimizerTest
---
.../legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.java | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git
a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.java
b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.java
index c7826cae7..840107cd6 100644
---
a/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.java
+++
b/commons-math-legacy/src/test/java/org/apache/commons/math4/legacy/optim/nonlinear/scalar/noderiv/SimplexOptimizerTest.java
@@ -269,7 +269,7 @@ public class SimplexOptimizerTest {
}
out.println();
} catch (IOException e) {
- Assertions.fail(e.getMessage());
+ Assertions.fail(e);
}
final double fAtOptimum = function.value(optimum);
@@ -303,7 +303,7 @@ public class SimplexOptimizerTest {
// Blank line between simplexes.
out.println();
} catch (IOException e) {
- Assertions.fail(e.getMessage());
+ Assertions.fail(e);
}
};
}
@@ -320,7 +320,7 @@ public class SimplexOptimizerTest {
try (PrintWriter out = new
PrintWriter(Files.newBufferedWriter(Paths.get(name)))) {
checkAlongLine(numPoints, out);
} catch (IOException e) {
- Assertions.fail(e.getMessage());
+ Assertions.fail(e);
}
} else {
checkAlongLine(numPoints, null);