void LinkedHashSetTest::testRemoveAll() { LinkedHashSet<int> set; populateSet(set, 3); ArrayList<int> collection; collection.add(1); collection.add(2); set.removeAll(collection); CPPUNIT_ASSERT_EQUAL(1, set.size()); LinkedHashSet<int> set2; set2.removeAll(collection); CPPUNIT_ASSERT_EQUAL(0, set2.size()); LinkedHashSet<int> set3; populateSet(set3, 3); collection.clear(); set3.removeAll(collection); CPPUNIT_ASSERT_EQUAL(3, set3.size()); }