File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ extension Range : Arbitrary where Bound : Arbitrary {
124
124
public static var arbitrary : Gen < Range < Bound > > {
125
125
return Bound . arbitrary. flatMap { l in
126
126
return Bound . arbitrary. flatMap { r in
127
- return Gen . pure ( ( min ( l, r) ..< max ( l, r) ) )
127
+ return Gen . pure ( ( Swift . min ( l, r) ..< Swift . max ( l, r) ) )
128
128
}
129
129
}
130
130
}
@@ -138,14 +138,14 @@ extension Range : Arbitrary where Bound : Arbitrary {
138
138
extension LazyCollection : Arbitrary where Base : Arbitrary {
139
139
/// Returns a generator of `LazyCollection`s of arbitrary `Base`s.
140
140
public static var arbitrary : Gen < LazyCollection < Base > > {
141
- return LazyCollection < Base> . arbitrary
141
+ return Base . arbitrary. map ( { $0 . lazy } )
142
142
}
143
143
}
144
144
145
145
extension LazySequence : Arbitrary where Base : Arbitrary {
146
146
/// Returns a generator of `LazySequence`s of arbitrary `Base`s.
147
147
public static var arbitrary : Gen < LazySequence < Base > > {
148
- return LazySequence < Base> . arbitrary
148
+ return Base . arbitrary. map ( { $0 . lazy } )
149
149
}
150
150
}
151
151
You can’t perform that action at this time.
0 commit comments