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:
Sebastian Bazley 2011-02-02 01:23:51 +00:00
parent 062ff19214
commit a5f5a93841
2 changed files with 2 additions and 0 deletions

View File

@ -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.
}

View File

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