Created
April 7, 2014 03:25
-
-
Save norio-nomura/10014402 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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