234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
|
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
|
-
+
|
for (OFString *key in mutDict) {
if (i > 1 || ![key isEqual: keys[i]]) {
ok = false;
break;
}
[mutDict setObject: (OFString *)[mutDict objectForKey: key]
[mutDict setObject: [mutDict objectForKey: key]
forKey: key];
i++;
}
TEST(@"Fast Enumeration", ok)
ok = false;
|
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
|
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
|
-
+
-
-
+
|
^ (id key, id obj, bool *stop) {
if (i > 1 || ![key isEqual: keys[i]]) {
ok = false;
*stop = true;
return;
}
[mutDict
[mutDict setObject: [mutDict objectForKey: key]
setObject: (OFString *)[mutDict objectForKey: key]
forKey: key];
forKey: key];
i++;
}];
TEST(@"Enumeration using blocks", ok)
ok = false;
@try {
|