Skip to content

Commit

Permalink
Show more test context
Browse files Browse the repository at this point in the history
  • Loading branch information
sebbASF committed Dec 24, 2023
1 parent 6a4d802 commit 55e5c10
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ private void doTest(MultivariateFunction func,
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);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ public String toString() {

final int nEval = optim.getEvaluations();
Assertions.assertTrue(nEval < functionEvaluations,
() -> name + ": nEval=" + nEval);
() -> name + ": nEval=" + nEval + " < " + functionEvaluations);
}

/**
Expand Down

0 comments on commit 55e5c10

Please sign in to comment.