Skip to content

Instantly share code, notes, and snippets.

@basuke
Created November 14, 2011 06:48
Show Gist options
  • Save basuke/1363403 to your computer and use it in GitHub Desktop.
Save basuke/1363403 to your computer and use it in GitHub Desktop.
NSIndexPathの比較テストの検証
- (void)testIndexPathEquality {
NSIndexPath *ip1 = [NSIndexPath indexPathForRow:0 inSection:0];
NSIndexPath *ip2 = [NSIndexPath indexPathForRow:0 inSection:0];
STAssertTrue([ip1 isEqual:ip2], @"indexpath の比較");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment