From 869db920a9fc7b4a96b377db9e407f410579cdee Mon Sep 17 00:00:00 2001 From: Jari Bakken Date: Fri, 16 Jan 2009 01:18:36 +0100 Subject: [PATCH] Add [CPArrayTest testRemoveObjectsAtIndexes] --- Tests/Foundation/CPArrayTest.j | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Tests/Foundation/CPArrayTest.j b/Tests/Foundation/CPArrayTest.j index 7a7febf61..d14632902 100644 --- a/Tests/Foundation/CPArrayTest.j +++ b/Tests/Foundation/CPArrayTest.j @@ -1,6 +1,6 @@ -import -import -import +@import +@import +@import @implementation CPArrayTest : OJTestCase @@ -83,4 +83,13 @@ import } } +- (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