Add [CPArrayTest testRemoveObjectsAtIndexes]

This commit is contained in:
Jari Bakken authored and Ross Boucher committed 2009-01-15 19:58:59 -08:00
1 parent 6d27e5d0f8
commit 869db920a9
1 file changed
+12 -3
+12 -3
View File
@@ -1,6 +1,6 @@
import <Foundation/CPArray.j>
import <Foundation/CPString.j>
import <Foundation/CPNumber.j>
@import <Foundation/CPArray.j>
@import <Foundation/CPString.j>
@import <Foundation/CPNumber.j>
@implementation CPArrayTest : OJTestCase
@@ -83,4 +83,13 @@ import <Foundation/CPNumber.j>
}
}
- (void)testRemoveObjectsAtIndexes
{
var array = [CPMutableArray arrayWithObjects:@"one", @"two", @"three", @"four", nil],
indexes = [CPMutableIndexSet indexSetWithIndex: 2];
[array removeObjectsAtIndexes: indexes];
[self assert:array equals:[@"one", @"two", @"four"]];
}
@end