@@ -88,10 +88,14 @@ TEST(@"-[unionSet:]", R([mutableSet unionSet: [OFSet setWithObjects: @"x", @"bar", nil]]) && [mutableSet isEqual: [OFSet setWithObjects: @"baz", @"bar", @"x", nil]]) + TEST(@"-[removeAllObjects]", + R([mutableSet removeAllObjects]) && + [mutableSet isEqual: [OFSet set]]) + ok = true; i = 0; for (OFString *s in set1) { switch (i) { @@ -120,10 +124,12 @@ ok = false; TEST(@"Fast enumeration", ok) ok = false; + [mutableSet addObject: @"foo"]; + [mutableSet addObject: @"bar"]; @try { for (OFString *s in mutableSet) [mutableSet removeObject: s]; } @catch (OFEnumerationMutationException *e) { ok = true;