You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by lu...@apache.org on 2009/07/21 23:54:47 UTC

svn commit: r796553 - /commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java

Author: luc
Date: Tue Jul 21 21:54:47 2009
New Revision: 796553

URL: http://svn.apache.org/viewvc?rev=796553&view=rev
Log:
improved test coverage

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java?rev=796553&r1=796552&r2=796553&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java (original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/random/MersenneTwisterTest.java Tue Jul 21 21:54:47 2009
@@ -45,6 +45,11 @@
                      0.006);
     }
 
+    @Test(expected=java.lang.IllegalArgumentException.class)
+    public void testNextIntNeg() {
+        new MersenneTwister(1).nextInt(-1);
+    }
+
     @Test
     public void testNextIntN() {
         MersenneTwister mt = new MersenneTwister(0x12b8a7412bb25el);