File tree 2 files changed +7
-8
lines changed
2 files changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -67,28 +67,29 @@ struct _ConcatenateSequenceGenerator<
67
67
68
68
/// A `SequenceType` whose elements consist of those *contained in* in
69
69
/// the elements of its `Base` sequence.
70
+ public // @testable
70
71
struct _ConcatenateSequenceView <
71
72
Base: SequenceType where Base. Generator. Element: SequenceType
72
73
> : SequenceType {
73
74
74
-
75
75
/// Present the elmeents of the elements of `base`
76
- init ( _ base: Base ) {
76
+ public init ( _ base: Base ) {
77
77
self . _base = base
78
78
}
79
79
80
80
/// Return a *generator* over the elements of this *sequence*.
81
81
///
82
82
/// Complexity: O(1)
83
- func generate( ) -> _ConcatenateSequenceGenerator < Base . Generator > {
83
+ public func generate( ) -> _ConcatenateSequenceGenerator < Base . Generator > {
84
84
return _ConcatenateSequenceGenerator ( _base. generate ( ) )
85
85
}
86
86
87
- var _base : Base
87
+ internal var _base : Base
88
88
}
89
89
90
90
/// Return a sequence that is a concatenation of the elements of
91
91
/// `source`\ 's elements
92
+ public // @testable
92
93
func _lazyConcatenate<
93
94
S: SequenceType
94
95
where S. Generator. Element: SequenceType
@@ -98,6 +99,7 @@ func _lazyConcatenate<
98
99
99
100
/// Return an `Array` containing the results of mapping `transform`
100
101
/// over `source`.
102
+ public // @testable
101
103
func _concatenate<
102
104
S: SequenceType
103
105
where S. Generator. Element: SequenceType
Original file line number Diff line number Diff line change 9
9
// See http://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10
10
//
11
11
//===----------------------------------------------------------------------===//
12
- // RUN: %target-run-stdlib -swift
12
+ // RUN: %target-run-simple -swift
13
13
14
- // XFAIL: linux
15
-
16
- import Swift
17
14
import StdlibUnittest
18
15
19
16
var ConcatenateTests = TestSuite ( " ConcatenateTests " )
You can’t perform that action at this time.
0 commit comments