mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
Simplify usage of diffing API
This commit is contained in:
@@ -57,8 +57,7 @@
|
||||
];
|
||||
|
||||
for (NSArray *test in tests) {
|
||||
NSMutableIndexSet *insertions = [NSMutableIndexSet indexSet];
|
||||
NSMutableIndexSet *deletions = [NSMutableIndexSet indexSet];
|
||||
NSIndexSet *insertions, *deletions;
|
||||
[test[0] asdk_diffWithArray:test[1] insertions:&insertions deletions:&deletions];
|
||||
for (NSNumber *index in (NSArray *)test[2]) {
|
||||
XCTAssert([insertions containsIndex:[index integerValue]]);
|
||||
|
||||
Reference in New Issue
Block a user