commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r618117 - /commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SummaryStatisticsAbstractTest.java
Date Sun, 03 Feb 2008 22:55:38 GMT
Author: luc
Date: Sun Feb  3 14:55:37 2008
New Revision: 618117

URL: http://svn.apache.org/viewvc?rev=618117&view=rev
Log:
really fixed the equals/hashcode issue
JIRA: MATH-186

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

Modified: commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SummaryStatisticsAbstractTest.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SummaryStatisticsAbstractTest.java?rev=618117&r1=618116&r2=618117&view=diff
==============================================================================
--- commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SummaryStatisticsAbstractTest.java
(original)
+++ commons/proper/math/trunk/src/test/org/apache/commons/math/stat/descriptive/SummaryStatisticsAbstractTest.java
Sun Feb  3 14:55:37 2008
@@ -197,10 +197,10 @@
         assertTrue("different n's should make hashcodes different", 
                 u.hashCode() != t.hashCode());
 
-        //Add data in different order to t, should not affect identity or hashcode
+        //Add data in same order to t
         t.addValue(2d);
-        t.addValue(3d);
         t.addValue(1d);
+        t.addValue(3d);
         t.addValue(4d);
         assertTrue("summaries based on same data should be equal", t.equals(u));
         assertTrue("summaries based on same data should be equal", u.equals(t));



Mime
View raw message