Fundamental Redesign of the Model
Started to add Documentation
This commit is contained in:
@@ -218,15 +218,20 @@
|
||||
XCTAssertEqual([testExpression numberOfElements], 3);
|
||||
// 12678 [] 90
|
||||
|
||||
[testExpression deleteElementsInRange:NSMakeRange(0, 2)];
|
||||
XCTAssertEqual([testExpression numberOfElements], 3);
|
||||
XCTAssertEqualObjects([testExpression elementAtIndex:0], @"678");
|
||||
|
||||
[testExpression insertElement:[[MPFunction alloc] init]
|
||||
atLocation:2];
|
||||
XCTAssertEqual([testExpression numberOfElements], 5);
|
||||
// 12 [] 678 [] 90
|
||||
// 67 [] 8 [] 90
|
||||
|
||||
[testExpression replaceElementsInRange:NSMakeRange(2, 5)
|
||||
[testExpression replaceSymbolsInRange:NSMakeRange(2, 5)
|
||||
withElements:@[[[MPFunction alloc] init]]];
|
||||
XCTAssertEqual([testExpression numberOfElements], 3);
|
||||
// 12 [] 90
|
||||
XCTAssertEqual([testExpression numberOfElements], 2);
|
||||
XCTAssertEqualObjects([testExpression elementAtIndex:0], @"67");
|
||||
// 67 []
|
||||
}
|
||||
|
||||
- (void)testInvalidMutatingRange {
|
||||
|
||||
Reference in New Issue
Block a user