206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
|
R([mutableArray1 replaceObjectAtIndex: 0 withObject: cArray[0]]) &&
[[mutableArray1 objectAtIndex: 0] isEqual: cArray[0]] &&
[[mutableArray1 objectAtIndex: 1] isEqual: cArray[0]] &&
[[mutableArray1 objectAtIndex: 2] isEqual: cArray[2]])
TEST(@"-[removeObject:]",
R([mutableArray1 removeObject: cArray[0]]) &&
mutableArray1.count == 2)
TEST(@"-[removeObjectIdenticalTo:]",
R([mutableArray1 removeObjectIdenticalTo: cArray[2]]) &&
mutableArray1.count == 1)
mutableArray2 = [[array1 mutableCopy] autorelease];
TEST(@"-[removeObjectAtIndex:]",
|
|
>
>
|
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
|
R([mutableArray1 replaceObjectAtIndex: 0 withObject: cArray[0]]) &&
[[mutableArray1 objectAtIndex: 0] isEqual: cArray[0]] &&
[[mutableArray1 objectAtIndex: 1] isEqual: cArray[0]] &&
[[mutableArray1 objectAtIndex: 2] isEqual: cArray[2]])
TEST(@"-[removeObject:]",
R([mutableArray1 removeObject: cArray[0]]) &&
mutableArray1.count == 1)
[mutableArray1 addObject: cArray[0]];
TEST(@"-[removeObjectIdenticalTo:]",
R([mutableArray1 removeObjectIdenticalTo: cArray[2]]) &&
mutableArray1.count == 1)
mutableArray2 = [[array1 mutableCopy] autorelease];
TEST(@"-[removeObjectAtIndex:]",
|