Differences From Artifact [1645530892]:
- File
tests/OFList/OFList.m
— part of check-in
[7a49441656]
at
2008-10-09 00:25:31
on branch trunk
— Multiple changes, see details.
* Use config.h.
* Check whether to use sel_get_name or sel_getName.
* Rename freeWithData to freeIncludingData. (user: js, size: 1475) [annotate] [blame] [check-ins using]
To Artifact [913aa88c30]:
- File tests/OFList/OFList.m — part of check-in [62abf39400] at 2008-10-25 22:25:50 on branch trunk — newWithFooString -> newAsFooString. (user: js, size: 1469) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
28 29 30 31 32 33 34 | { size_t i; OFList *list; OFListObject *iter; list = [OFList new]; | | | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | { size_t i; OFList *list; OFListObject *iter; list = [OFList new]; [list addNew: [OFString newAsConstCString: strings[0]]]; [list addNew: [OFString newAsConstCString: strings[1]]]; [list addNew: [OFString newAsConstCString: strings[2]]]; for (iter = [list first], i = 0; iter != nil; iter = [iter next], i++) if (!strcmp([(OFString*)[iter data] cString], strings[i])) printf("Element %zu is expected element. GOOD!\n", i); else { printf("Element %zu is not expected element!\n", i); return 1; |
︙ | ︙ |