commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From er...@apache.org
Subject svn commit: r1176809 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java
Date Wed, 28 Sep 2011 10:10:20 GMT
Author: erans
Date: Wed Sep 28 10:10:20 2011
New Revision: 1176809

URL: http://svn.apache.org/viewvc?rev=1176809&view=rev
Log:
Additional test.

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java?rev=1176809&r1=1176808&r2=1176809&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/util/MathUtilsTest.java
Wed Sep 28 10:10:20 2011
@@ -1648,6 +1648,13 @@ public final class MathUtilsTest {
         } catch (NonMonotonicSequenceException e) {
             // Expected
         }
+        try {
+            MathUtils.checkOrder(new double[] {3, 0, -5.5, -11, -10},
+                                 MathUtils.OrderDirection.DECREASING, false);
+            Assert.fail("an exception should have been thrown");
+        } catch (NonMonotonicSequenceException e) {
+            // Expected
+        }
     }
 
     @Test



Mime
View raw message