commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1066297 - in /commons/proper/math/trunk/src/test/java/org/apache/commons/math: analysis/solvers/BrentSolverTest.java linear/FieldLUDecompositionImplTest.java
Date Wed, 02 Feb 2011 01:23:52 GMT
Author: sebb
Date: Wed Feb  2 01:23:51 2011
New Revision: 1066297

URL: http://svn.apache.org/viewvc?rev=1066297&view=rev
Log:
Fix broken tests: add missing fail() calls

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java?rev=1066297&r1=1066296&r2=1066297&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/analysis/solvers/BrentSolverTest.java
Wed Feb  2 01:23:51 2011
@@ -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.
         }

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java?rev=1066297&r1=1066296&r2=1066297&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/linear/FieldLUDecompositionImplTest.java
Wed Feb  2 01:23:51 2011
@@ -78,6 +78,7 @@ public class FieldLUDecompositionImplTes
                     { Fraction.ZERO, Fraction.ZERO },
                     { Fraction.ZERO, Fraction.ZERO }
             }));
+            fail("Expected NonSquareMatrixException");
         } catch (NonSquareMatrixException ime) {
             // expected behavior
         }



Mime
View raw message