244
245
246
247
248
249
250
251
252
253
254
255
256
257
|
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
|
>
>
>
>
|
|
|
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
|
case 0:
return @"foo";
case 1:
return @"bar";
}
return nil;
}]) && [[m[0] description] isEqual: @"(foo, bar)"])
TEST(@"-[filteredArrayUsingBlock:]",
[[[m[0] filteredArrayUsingBlock: ^ BOOL (id obj, size_t idx) {
return ([obj isEqual: @"foo"] ? YES : NO);
}] description] isEqual: @"(foo)"])
#endif
[pool drain];
}
@end
|