Show more test context

This commit is contained in:
Sebb 2023-12-24 17:28:54 +00:00
parent 6a4d802cb9
commit 55e5c1060c
2 changed files with 2 additions and 2 deletions

View File

@ -245,7 +245,7 @@ public class SimplexOptimizerNelderMeadTest {
Assert.assertEquals(name + ": distance to optimum", 0d, dist, tol);
final int nEval = optim.getEvaluations();
Assert.assertTrue(name + ": nEval=" + nEval,
Assert.assertTrue(name + ": nEval=" + nEval + " < " + maxEvaluations,
nEval < maxEvaluations);
}
}

View File

@ -232,7 +232,7 @@ public class SimplexOptimizerTest {
final int nEval = optim.getEvaluations();
Assertions.assertTrue(nEval < functionEvaluations,
() -> name + ": nEval=" + nEval);
() -> name + ": nEval=" + nEval + " < " + functionEvaluations);
}
/**