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