Skip to content

Instantly share code, notes, and snippets.

@norio-nomura
Created April 7, 2014 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save norio-nomura/10014402 to your computer and use it in GitHub Desktop.
Save norio-nomura/10014402 to your computer and use it in GitHub Desktop.
#pragma mark - MutableChildren
- (void)testMutableChildren
{
NSArray *array = @[@"0",
@"1",
[NSNull null],
@"2",
@[@"0",
[NSNull null],
@"1",
[NSNull null],
@"2"],
@"4"];
NSMutableArray *mutableArray = [array mutableCopy];
NSMutableArray *compactMutableArray = [mutableArray cu_compactArray];
NSString *test = @"test";
compactMutableArray[3][1] = test;
XCTAssertEqualObjects(compactMutableArray[3][1], test);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment