@@ -30,14 +30,12 @@ - (void)setTests { OFAutoreleasePool *pool = [[OFAutoreleasePool alloc] init]; OFSet *set1, *set2; OFMutableSet *mutableSet; -#ifdef OF_HAVE_FAST_ENUMERATION bool ok; size_t i; -#endif TEST(@"+[setWithArray:]", (set1 = [OFSet setWithArray: [OFArray arrayWithObjects: @"foo", @"bar", @"baz", @"foo", @"x", nil]])) @@ -89,11 +87,10 @@ TEST(@"-[unionSet:]", R([mutableSet unionSet: [OFSet setWithObjects: @"x", @"bar", nil]]) && [mutableSet isEqual: [OFSet setWithObjects: @"baz", @"bar", @"x", nil]]) -#ifdef OF_HAVE_FAST_ENUMERATION ok = true; i = 0; for (OFString *s in set1) { switch (i) { @@ -130,10 +127,9 @@ } @catch (OFEnumerationMutationException *e) { ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok); -#endif [pool drain]; } @end