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:
Tim Oliver 2023-04-17 20:41:49 -07:00 committed by Facebook GitHub Bot
parent d7574152d3
commit bec019925c

View file

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