Skip to content

Commit

Permalink
changing the order of data to be less sensitive to numerical problems…
Browse files Browse the repository at this point in the history
… on different JVM

JIRA: MATH-186

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@618113 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Luc Maisonobe committed Feb 3, 2008
1 parent 7258df6 commit 821bca5
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -198,10 +198,10 @@ public void testEqualsAndHashCode() {
u.hashCode() != t.hashCode());

//Add data in different order to t, should not affect identity or hashcode
t.addValue(4d);
t.addValue(2d);
t.addValue(3d);
t.addValue(1d);
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));
assertEquals("summaries based on same data should have same hashcodes",
Expand Down

0 comments on commit 821bca5

Please sign in to comment.