sclass test_CompactHashSet { new HashSet a; new CompactHashSet b; int n = 1000, valueRange = 10; O makeEntry() { ret random(valueRange); } bool remove = true; run { repeat n { addToTwoCollections(a, b, makeEntry()); if (remove) removeFromTwoCollections(a, b, makeEntry()); print(n2(b) + " - " + takeFirst(10, b.iterator()); assertTrue(areSetsEqual(a, b)); print("Size HashSet: " + n2(deepObjectSize(a)) + ", size CompactHashSet: " + n2(deepObjectSize(b))); } } } svoid test_CompactSet() { new Test_CompactHashSet().run(); }