Permalink
Browse files

updated tests to verify behavior of union() against an empty set

  • Loading branch information...
1 parent ab9b4ec commit f09d69155fc53b244010f50a3c9afc71e4037cdf @d2fn d2fn committed Aug 2, 2012
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/test/java/org/cliffc/high_scale_lib/NonBlockingSetIntTest.java
@@ -30,11 +30,9 @@ public void testSetOperations() {
assertTrue(t.contains(i));
}
- int magic = 1213446;
-
- a.add(magic);
+ a.add(1213446);
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 = a.intersect(b);

0 comments on commit f09d691

Please sign in to comment.