Removed other test causing invalid state in surrounding tests

This commit is contained in:
Tim Oliver 2026-01-27 14:15:14 +09:00
parent fa26ac3122
commit 36ea8efd6f

View file

@ -1298,23 +1298,4 @@ static const CGRect kTestFrame = (CGRect){{0, 0}, {100, 100}};
atIndexPath:[NSIndexPath indexPathForItem:10 inSection:10]]);
}
- (void)test_whenQueryingAttributes_withNilIndexPath_thatReturnsNil {
[self setUpWithStickyHeaders:NO topInset:0];
[self prepareWithData:@[
[[IGLayoutTestSection alloc] initWithInsets:UIEdgeInsetsZero
lineSpacing:0
interitemSpacing:0
headerHeight:0
footerHeight:0
items:@[
[[IGLayoutTestItem alloc] initWithSize:CGSizeMake(33, 33)],
]],
]];
// Assign nil to a variable to bypass the nonnull compile-time check
NSIndexPath *nilIndexPath = nil;
XCTAssertNil([self.layout layoutAttributesForItemAtIndexPath:nilIndexPath]);
}
@end