mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-07 09:28:02 +00:00
Add [CPArrayTest testRemoveObjectsAtIndexes]
This commit is contained in:
1 parent
6d27e5d0f8
commit
869db920a9
1 file changed
+12
-3
@@ -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
|
||||
Reference in new issue
Block a user