Fix broken tests: add missing fail() calls
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1066297 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
062ff19214
commit
a5f5a93841
|
@ -149,6 +149,7 @@ public final class BrentSolverTest {
|
|||
|
||||
try {
|
||||
result = solver.solve(5, f, 0.85, 5);
|
||||
Assert.fail("Expected TooManyEvaluationsException");
|
||||
} catch (TooManyEvaluationsException e) {
|
||||
// Expected.
|
||||
}
|
||||
|
|
|
@ -78,6 +78,7 @@ public class FieldLUDecompositionImplTest extends TestCase {
|
|||
{ Fraction.ZERO, Fraction.ZERO },
|
||||
{ Fraction.ZERO, Fraction.ZERO }
|
||||
}));
|
||||
fail("Expected NonSquareMatrixException");
|
||||
} catch (NonSquareMatrixException ime) {
|
||||
// expected behavior
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue