129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
(a[1] = [OFArray arrayWithObject: @"foo"]) &&
[[a[1] componentsJoinedByString: @" "] isEqual: @"foo"])
m[0] = [[a[0] mutableCopy] autorelease];
ok = YES;
i = 0;
TEST(@"-[enumerator]", (enumerator = [m[0] enumerator]))
while ((obj = [enumerator nextObject]) != nil) {
if (![obj isEqual: c_ary[i]])
ok = NO;
[m[0] replaceObjectAtIndex: i
withObject: @""];
i++;
|
|
|
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
|
(a[1] = [OFArray arrayWithObject: @"foo"]) &&
[[a[1] componentsJoinedByString: @" "] isEqual: @"foo"])
m[0] = [[a[0] mutableCopy] autorelease];
ok = YES;
i = 0;
TEST(@"-[objectEnumerator]", (enumerator = [m[0] objectEnumerator]))
while ((obj = [enumerator nextObject]) != nil) {
if (![obj isEqual: c_ary[i]])
ok = NO;
[m[0] replaceObjectAtIndex: i
withObject: @""];
i++;
|