File tree Expand file tree Collapse file tree 2 files changed +10
-5
lines changed
Tests/SwiftAlgorithmsTests Expand file tree Collapse file tree 2 files changed +10
-5
lines changed Original file line number Diff line number Diff line change @@ -148,13 +148,17 @@ extension Collection {
148
148
}
149
149
}
150
150
151
- extension CompactedSequence : LazySequenceProtocol where Base: LazySequenceProtocol { }
151
+ extension CompactedSequence : LazySequenceProtocol
152
+ where Base: LazySequenceProtocol { }
152
153
extension CompactedSequence : Equatable where Base: Equatable { }
153
154
extension CompactedSequence : Hashable where Base: Hashable { }
154
155
155
- extension CompactedCollection : RandomAccessCollection where Base: RandomAccessCollection { }
156
- extension CompactedCollection : LazySequenceProtocol where Base: LazySequenceProtocol { }
157
- extension CompactedCollection : LazyCollectionProtocol where Base: LazyCollectionProtocol { }
156
+ extension CompactedCollection : RandomAccessCollection
157
+ where Base: RandomAccessCollection { }
158
+ extension CompactedCollection : LazySequenceProtocol
159
+ where Base: LazySequenceProtocol { }
160
+ extension CompactedCollection : LazyCollectionProtocol
161
+ where Base: LazyCollectionProtocol { }
158
162
extension CompactedCollection : Equatable where Base: Equatable { }
159
163
160
164
// Since we have another stored property of type `Base.Index` on the
Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ final class CompactedTests: XCTestCase {
41
41
42
42
func testCompactedBidirectionalCollection( ) {
43
43
for array in self . tests {
44
- XCTAssertEqualSequences ( array. compactMap ( { $0 } ) . reversed ( ) , array. compacted ( ) . reversed ( ) )
44
+ XCTAssertEqualSequences ( array. compactMap ( { $0 } ) . reversed ( ) ,
45
+ array. compacted ( ) . reversed ( ) )
45
46
}
46
47
}
47
48
You can’t perform that action at this time.
0 commit comments