@@ -698,7 +698,7 @@ class SignalProducerSpec: QuickSpec {
698698 observerA. sendCompleted ( )
699699 observerB. sendCompleted ( )
700700
701- expect ( values) == [ [ 1 , 2 ] , [ 3 , 2 ] ]
701+ expect ( values as NSArray ) == [ [ 1 , 2 ] , [ 3 , 2 ] ]
702702 }
703703
704704 it ( " should start signal producers in order as defined " ) {
@@ -723,7 +723,7 @@ class SignalProducerSpec: QuickSpec {
723723 }
724724
725725 expect ( ids) == [ 1 , 2 ]
726- expect ( values) == [ [ 1 , 2 ] ]
726+ expect ( values as NSArray ) == [ [ 1 , 2 ] ] as NSArray
727727 }
728728 }
729729
@@ -735,7 +735,7 @@ class SignalProducerSpec: QuickSpec {
735735 let producer = SignalProducer . zip ( [ producerA, producerB] )
736736 let result = producer. collect ( ) . single ( )
737737
738- expect ( result? . value) == [ [ 1 , 3 ] , [ 2 , 4 ] ]
738+ expect ( result? . value. map { $0 as NSArray } ) == [ [ 1 , 3 ] , [ 2 , 4 ] ] as NSArray
739739 }
740740
741741 it ( " should start signal producers in order as defined " ) {
@@ -760,7 +760,7 @@ class SignalProducerSpec: QuickSpec {
760760 }
761761
762762 expect ( ids) == [ 1 , 2 ]
763- expect ( values) == [ [ 1 , 2 ] ]
763+ expect ( values as NSArray ) == [ [ 1 , 2 ] ] as NSArray
764764 }
765765 }
766766
@@ -774,7 +774,7 @@ class SignalProducerSpec: QuickSpec {
774774 let tick2 = startDate. addingTimeInterval ( 2 )
775775 let tick3 = startDate. addingTimeInterval ( 3 )
776776
777- var dates : [ NSDate ] = [ ]
777+ var dates : [ Date ] = [ ]
778778 producer. startWithNext { dates. append ( $0) }
779779
780780 scheduler. advance ( by: 0.9 )
@@ -926,7 +926,7 @@ class SignalProducerSpec: QuickSpec {
926926
927927 let producer = timer ( interval: 2 , on: testScheduler, leeway: 0 )
928928
929- var next : NSDate ?
929+ var next : Date ?
930930 producer. start ( on: startScheduler) . startWithNext { next = $0 }
931931
932932 startScheduler. advance ( by: 2 )
@@ -1700,7 +1700,7 @@ class SignalProducerSpec: QuickSpec {
17001700 expect ( result) . to ( beNil ( ) )
17011701
17021702 observer. sendNext ( 1 )
1703- expect ( result) . toEventually ( be ( 1 ) , timeout: 5.0 )
1703+ expect ( result) . toEventually ( equal ( 1 ) , timeout: 5.0 )
17041704 }
17051705
17061706 it ( " should return a nil result if no values are sent before completion " ) {
@@ -1753,7 +1753,7 @@ class SignalProducerSpec: QuickSpec {
17531753 expect ( result) . to ( beNil ( ) )
17541754
17551755 observer. sendCompleted ( )
1756- expect ( result) . toEventually ( be ( 1 ) )
1756+ expect ( result) . toEventually ( equal ( 1 ) )
17571757 }
17581758
17591759 it ( " should return a nil result if no values are sent before completion " ) {
@@ -2151,7 +2151,7 @@ class SignalProducerSpec: QuickSpec {
21512151 final class Value {
21522152 private let deinitBlock : ( ) -> Void
21532153
2154- init ( deinitBlock: ( ) -> Void ) {
2154+ init ( deinitBlock: @escaping ( ) -> Void ) {
21552155 self . deinitBlock = deinitBlock
21562156 }
21572157
@@ -2232,7 +2232,7 @@ extension SignalProducer {
22322232
22332233 /// Creates a producer that can be started as many times as elements in `results`.
22342234 /// Each signal will immediately send either a value or an error.
2235- private static func attemptWithResults< C: Collection where C. Iterator. Element == Result < Value , Error > , C. IndexDistance == C . Index , C. Index == Int > ( _ results : C ) -> SignalProducer < Value , Error > {
2235+ fileprivate static func attemptWithResults< C: Collection > ( _ results : C ) -> SignalProducer < Value , Error > where C. Iterator. Element == Result < Value , Error > , C. IndexDistance == C . Index , C. Index == Int {
22362236 let resultCount = results. count
22372237 var operationIndex = 0
22382238
0 commit comments