ObjFW  Diff

Differences From Artifact [ff3793f72c]:

To Artifact [f1dd14b8b5]:


218
219
220
221
222
223
224














225
226
227
228
229
			ok = YES;
			[e dealloc];
		}

		TEST(@"Detection of mutation during enumeration using blocks",
		    ok)
	}














#endif

	[pool drain];
}
@end







>
>
>
>
>
>
>
>
>
>
>
>
>
>





218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
			ok = YES;
			[e dealloc];
		}

		TEST(@"Detection of mutation during enumeration using blocks",
		    ok)
	}

	TEST(@"-[replaceObjectsUsingBlock:]",
	    R([m[0] replaceObjectsUsingBlock:
	    ^ id (id obj, size_t idx, BOOL *stop) {
		switch (idx) {
		case 0:
			return @"foo";
		case 1:
			return @"bar";
		}

		return nil;
	    }]) && [[m[0] objectAtIndex: 0] isEqual: @"foo"] &&
	    [[m[0] objectAtIndex: 1] isEqual: @"bar"])
#endif

	[pool drain];
}
@end