commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From celes...@apache.org
Subject svn commit: r1210365 - /commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java
Date Mon, 05 Dec 2011 09:01:14 GMT
Author: celestin
Date: Mon Dec  5 09:01:14 2011
New Revision: 1210365

URL: http://svn.apache.org/viewvc?rev=1210365&view=rev
Log:
- Corrected unit test (MATH-715).

Modified:
    commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java

Modified: commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java?rev=1210365&r1=1210364&r2=1210365&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java
(original)
+++ commons/proper/math/trunk/src/test/java/org/apache/commons/math/distribution/PascalDistributionTest.java
Mon Dec  5 09:01:14 2011
@@ -126,7 +126,7 @@ public class PascalDistributionTest exte
         Assert.assertEquals(dist.getNumericalMean(), ( 10d * 0.5d ) / 0.5d, tol);
         Assert.assertEquals(dist.getNumericalVariance(), ( 10d * 0.5d ) / (0.5d * 0.5d),
tol);
 
-        dist = new PascalDistribution(25, 0.3);
+        dist = new PascalDistribution(25, 0.7);
         Assert.assertEquals(dist.getNumericalMean(), ( 25d * 0.3d ) / 0.7d, tol);
         Assert.assertEquals(dist.getNumericalVariance(), ( 25d * 0.3d ) / (0.7d * 0.7d),
tol);
     }



Mime
View raw message