Overview
Comment: | Add a test for -[foldUsingBlock:]. |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA3-256: |
32d6b7282a9f1d2ef1c7e798aa8e4a39 |
User & Date: | js on 2011-07-22 17:17:24 |
Other Links: | manifest | tags |
Context
2011-07-23
| ||
13:33 | Add -[self] to OFObject. check-in: f1d6ecb1b8 user: js tags: trunk | |
2011-07-22
| ||
17:17 | Add a test for -[foldUsingBlock:]. check-in: 32d6b7282a user: js tags: trunk | |
17:09 | Rename -[reduceUsingBlock:] to -[foldUsingBlock:]. check-in: d6faaf68b9 user: js tags: trunk | |
Changes
Modified tests/OFArrayTests.m from [5c7cef8543] to [964609bde3].
︙ | ︙ | |||
278 279 280 281 282 283 284 285 286 287 288 289 | return nil; }] description] isEqual: @"(\n\tfoobar,\n\tqux\n)"]) TEST(@"-[filteredArrayUsingBlock:]", [[[m[0] filteredArrayUsingBlock: ^ BOOL (id obj, size_t idx) { return ([obj isEqual: @"foo"] ? YES : NO); }] description] isEqual: @"(\n\tfoo\n)"]) #endif [pool drain]; } @end | > > > > > > > | 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 | return nil; }] description] isEqual: @"(\n\tfoobar,\n\tqux\n)"]) TEST(@"-[filteredArrayUsingBlock:]", [[[m[0] filteredArrayUsingBlock: ^ BOOL (id obj, size_t idx) { return ([obj isEqual: @"foo"] ? YES : NO); }] description] isEqual: @"(\n\tfoo\n)"]) TEST(@"-[foldUsingBlock:]", [([OFArray arrayWithObjects: [OFMutableString string], @"foo", @"bar", @"baz", nil]) foldUsingBlock: ^ id (id left, id right) { [left appendString: right]; return left; }]) #endif [pool drain]; } @end |