mirror of
https://github.com/Instagram/IGListKit
synced 2026-05-23 09:18:29 +00:00
Added remaining test coverage for IGListSectionMap
Summary: Added remaining test coverage to IGListSectionMap Reviewed By: candance Differential Revision: D45004860 fbshipit-source-id: 30e4988a8b3ce56551aceb52c0cd99be2286fffa
This commit is contained in:
parent
d7574152d3
commit
bec019925c
1 changed files with 7 additions and 0 deletions
|
|
@ -100,4 +100,11 @@
|
|||
XCTAssertFalse(one.isFirstSection);
|
||||
}
|
||||
|
||||
- (void)test_whenQueryingItems_thatNilReturnsNotFound {
|
||||
NSObject *object = [NSObject new];
|
||||
object = nil;
|
||||
IGListSectionMap *map = [[IGListSectionMap alloc] initWithMapTable:[NSMapTable strongToStrongObjectsMapTable]];
|
||||
XCTAssertEqual([map sectionForObject:object], NSNotFound);
|
||||
}
|
||||
|
||||
@end
|
||||
|
|
|
|||
Loading…
Reference in a new issue