@@ -636,25 +636,25 @@ class TestIndexPath: XCTestCase {
636
636
return NSIndexPath ( indexes: buffer. baseAddress, length: buffer. count)
637
637
}
638
638
639
- var ip1 : IndexPath ? = IndexPath ( )
639
+ var ip1 : IndexPath ?
640
640
IndexPath . _forceBridgeFromObjectiveC ( nsip1, result: & ip1)
641
641
XCTAssertNotNil ( ip1)
642
642
XCTAssertEqual ( ip1!. count, 0 )
643
643
644
- var ip2 : IndexPath ? = IndexPath ( )
644
+ var ip2 : IndexPath ?
645
645
IndexPath . _forceBridgeFromObjectiveC ( nsip2, result: & ip2)
646
646
XCTAssertNotNil ( ip2)
647
647
XCTAssertEqual ( ip2!. count, 1 )
648
648
XCTAssertEqual ( ip2![ 0 ] , 1 )
649
649
650
- var ip3 : IndexPath ? = IndexPath ( )
650
+ var ip3 : IndexPath ?
651
651
IndexPath . _forceBridgeFromObjectiveC ( nsip3, result: & ip3)
652
652
XCTAssertNotNil ( ip3)
653
653
XCTAssertEqual ( ip3!. count, 2 )
654
654
XCTAssertEqual ( ip3![ 0 ] , 1 )
655
655
XCTAssertEqual ( ip3![ 1 ] , 2 )
656
656
657
- var ip4 : IndexPath ? = IndexPath ( )
657
+ var ip4 : IndexPath ?
658
658
IndexPath . _forceBridgeFromObjectiveC ( nsip4, result: & ip4)
659
659
XCTAssertNotNil ( ip4)
660
660
XCTAssertEqual ( ip4!. count, 3 )
@@ -673,25 +673,25 @@ class TestIndexPath: XCTestCase {
673
673
return NSIndexPath ( indexes: buffer. baseAddress, length: buffer. count)
674
674
}
675
675
676
- var ip1 : IndexPath ? = IndexPath ( )
676
+ var ip1 : IndexPath ?
677
677
XCTAssertTrue ( IndexPath . _conditionallyBridgeFromObjectiveC ( nsip1, result: & ip1) )
678
678
XCTAssertNotNil ( ip1)
679
679
XCTAssertEqual ( ip1!. count, 0 )
680
680
681
- var ip2 : IndexPath ? = IndexPath ( )
681
+ var ip2 : IndexPath ?
682
682
XCTAssertTrue ( IndexPath . _conditionallyBridgeFromObjectiveC ( nsip2, result: & ip2) )
683
683
XCTAssertNotNil ( ip2)
684
684
XCTAssertEqual ( ip2!. count, 1 )
685
685
XCTAssertEqual ( ip2![ 0 ] , 1 )
686
686
687
- var ip3 : IndexPath ? = IndexPath ( )
687
+ var ip3 : IndexPath ?
688
688
XCTAssertTrue ( IndexPath . _conditionallyBridgeFromObjectiveC ( nsip3, result: & ip3) )
689
689
XCTAssertNotNil ( ip3)
690
690
XCTAssertEqual ( ip3!. count, 2 )
691
691
XCTAssertEqual ( ip3![ 0 ] , 1 )
692
692
XCTAssertEqual ( ip3![ 1 ] , 2 )
693
693
694
- var ip4 : IndexPath ? = IndexPath ( )
694
+ var ip4 : IndexPath ?
695
695
XCTAssertTrue ( IndexPath . _conditionallyBridgeFromObjectiveC ( nsip4, result: & ip4) )
696
696
XCTAssertNotNil ( ip4)
697
697
XCTAssertEqual ( ip4!. count, 3 )
0 commit comments