commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r797744 - /commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java
Date Sat, 25 Jul 2009 11:09:14 GMT
Author: luc
Date: Sat Jul 25 11:09:14 2009
New Revision: 797744

URL: http://svn.apache.org/viewvc?rev=797744&view=rev
Log:
limited accuracy of numbers in string comparisons

Modified:
    commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java?rev=797744&r1=797743&r2=797744&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/MultivariateSummaryStatisticsTest.java
Sat Jul 25 11:09:14 2009
@@ -100,12 +100,12 @@
                      "min: 1.0, 1.0\n" +
                      "max: 3.0, 3.0\n" +
                      "mean: 2.0, 2.0\n" +
-                     "geometric mean: 1.8171205928321394, 1.8171205928321394\n" +
+                     "geometric mean: 1.817..., 1.817...\n" +
                      "sum of squares: 14.0, 14.0\n" +
-                     "sum of logarithms: 1.791759469228055, 1.791759469228055\n" +
+                     "sum of logarithms: 1.791..., 1.791...\n" +
                      "standard deviation: 1.0, 1.0\n" +
                      "covariance: Array2DRowRealMatrix{{1.0,-1.0},{-1.0,1.0}}\n",
-                     stats.toString());
+                     stats.toString().replaceAll("([0-9]+\\.[0-9][0-9][0-9])[0-9]+", "$1..."));
         Locale.setDefault(d);
     }
 



Mime
View raw message