Skip to content

Commit

Permalink
hashCode check added
Browse files Browse the repository at this point in the history
  • Loading branch information
michelegonella committed Sep 27, 2012
1 parent 8bdf782 commit b4c88cd
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,10 @@ public void test4() {
assertTrue(s.contains(o2));
assertEquals(2, s.size());
assertFalse(o1.equals(o2));
int h21 = o2.hashCode();
o2.with("a", 1);
int h22 = o2.hashCode();
assertTrue(h21 != h22);
assertTrue(s.contains(o2));
assertEquals(o1, o2);
assertEquals(2, s.size());
Expand Down

0 comments on commit b4c88cd

Please sign in to comment.