Differences From Artifact [a0e388f1bc]:
- File tests/OFArrayTests.m — part of check-in [07e630588d] at 2015-06-28 16:39:34 on branch trunk — tests: Use __VA_ARGS__ for TEST() and clean up (user: js, size: 9122) [annotate] [blame] [check-ins using]
To Artifact [db4b803ef8]:
- File
tests/OFArrayTests.m
— part of check-in
[be8db49635]
at
2015-11-29 14:26:44
on branch trunk
— Remove defines we no longer need
Now that we require GCC >= 4.6, those features are always available. (user: js, size: 9083) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
196 197 198 199 200 201 202 | [enumerator reset]; [m[0] removeObjectAtIndex: 0]; EXPECT_EXCEPTION(@"Detection of mutation during enumeration", OFEnumerationMutationException, [enumerator nextObject]) | < | 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | [enumerator reset]; [m[0] removeObjectAtIndex: 0]; EXPECT_EXCEPTION(@"Detection of mutation during enumeration", OFEnumerationMutationException, [enumerator nextObject]) m[0] = [[a[0] mutableCopy] autorelease]; ok = true; i = 0; for (OFString *s in m[0]) { if (![s isEqual: c_ary[i]]) ok = false; |
︙ | ︙ | |||
239 240 241 242 243 244 245 | } @catch (OFEnumerationMutationException *e) { ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [m[0] removeLastObject]; | < | 238 239 240 241 242 243 244 245 246 247 248 249 250 251 | } @catch (OFEnumerationMutationException *e) { ok = true; } TEST(@"Detection of mutation during Fast Enumeration", ok) [m[0] removeLastObject]; #ifdef OF_HAVE_BLOCKS { __block bool ok = true; __block size_t count = 0; OFArray *cmp = a[0]; OFMutableArray *a2; |
︙ | ︙ |