Skip to content

Commit

Permalink
updated tests to verify behavior of union() against an empty set
Browse files Browse the repository at this point in the history
  • Loading branch information
d2fn committed Aug 2, 2012
1 parent ab9b4ec commit f09d691
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -30,11 +30,9 @@ public void testSetOperations() {
assertTrue(t.contains(i)); assertTrue(t.contains(i));
} }


int magic = 1213446; a.add(1213446);

a.add(magic);
NonBlockingSetInt c = a.union(empty); NonBlockingSetInt c = a.union(empty);
assertTrue(c.contains(magic)); assertTrue(c.contains(1213446));


// c should contain the empty set since a and b are disjoint // c should contain the empty set since a and b are disjoint
c = a.intersect(b); c = a.intersect(b);
Expand Down

0 comments on commit f09d691

Please sign in to comment.