Archived
1

Fundamental Redesign of the Model

Started to add Documentation
This commit is contained in:
Kim Wittenburg
2014-08-22 00:53:08 +02:00
parent 60760b8b3d
commit a37d587e1f
7 changed files with 486 additions and 55 deletions

View File

@@ -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 {