From a7e114436b15c56809deb4d29f114f6c3241d68b Mon Sep 17 00:00:00 2001 From: Ceri Hughes Date: Tue, 3 Jan 2017 09:21:05 +0000 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20use=20XCTAssertEqual=20for=20ob?= =?UTF-8?q?ject=20equivalence.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/HUBComponentModelTests.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/HUBComponentModelTests.m b/tests/HUBComponentModelTests.m index 65cae681..a3197b10 100644 --- a/tests/HUBComponentModelTests.m +++ b/tests/HUBComponentModelTests.m @@ -170,16 +170,16 @@ - (void)testIndexPaths parent.children = @[childA, childB]; childB.children = @[grandchild]; - XCTAssertEqual(parent.indexPath, [NSIndexPath indexPathWithIndex:0]); + XCTAssertEqualObjects(parent.indexPath, [NSIndexPath indexPathWithIndex:0]); NSUInteger childAIndexPathArray[] = {0,0}; - XCTAssertEqual(childA.indexPath, [NSIndexPath indexPathWithIndexes:childAIndexPathArray length:2]); + XCTAssertEqualObjects(childA.indexPath, [NSIndexPath indexPathWithIndexes:childAIndexPathArray length:2]); NSUInteger childBIndexPathArray[] = {0,1}; - XCTAssertEqual(childB.indexPath, [NSIndexPath indexPathWithIndexes:childBIndexPathArray length:2]); + XCTAssertEqualObjects(childB.indexPath, [NSIndexPath indexPathWithIndexes:childBIndexPathArray length:2]); NSUInteger grandchildIndexPathArray[] = {0,1,0}; - XCTAssertEqual(grandchild.indexPath, [NSIndexPath indexPathWithIndexes:grandchildIndexPathArray length:3]); + XCTAssertEqualObjects(grandchild.indexPath, [NSIndexPath indexPathWithIndexes:grandchildIndexPathArray length:3]); } - (void)testPropertiesThatDoNotAffectEquality