File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Tests/SwiftAlgorithmsTests Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -84,8 +84,9 @@ extension LazySplitSequence.Iterator: IteratorProtocol {
84
84
// than the number of separators), or the only subsequence left to return is
85
85
// empty and we're omitting those.
86
86
if currentElement == nil
87
- && ( sequenceLength == separatorCount + 1
88
- || omittingEmptySubsequences && subsequence. isEmpty) {
87
+ && ( sequenceLength == separatorCount + 1
88
+ || omittingEmptySubsequences && subsequence. isEmpty)
89
+ {
89
90
return nil
90
91
} else {
91
92
sequenceLength += 1
Original file line number Diff line number Diff line change 9
9
//
10
10
//===----------------------------------------------------------------------===//
11
11
12
- import XCTest
13
-
14
12
import Algorithms
13
+ import XCTest
15
14
16
15
final class LazySplitSequenceTests : XCTestCase {
17
16
fileprivate static let isEven = { $0 % 2 == 0 }
You can’t perform that action at this time.
0 commit comments