really fixed the equals/hashcode issue

JIRA: MATH-186

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@618117 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Luc Maisonobe 2008-02-03 22:55:37 +00:00
parent 61fabe8b9f
commit a0c17a75ef
1 changed files with 2 additions and 2 deletions

View File

@ -197,10 +197,10 @@ public abstract class SummaryStatisticsAbstractTest extends TestCase {
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));