@@ -235,59 +235,12 @@ main = hspec
235235 <> [("rate AvgRate 0.00000001", parallely . avgRate 0.00000001)]
236236 <> [("maxBuffer (-1)", parallely . maxBuffer (-1))]
237237#endif
238− let parallelOps :: IsStream t
239− => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
240− parallelOps spec = mapOps spec $ makeOps parallely <> parallelCommonOps
241238
242239 let parallelConcurrentAppOps :: IsStream t
243240 => ((ParallelT IO a -> t IO a) -> Spec) -> Spec
244241 parallelConcurrentAppOps spec =
245242 mapOps spec $ makeConcurrentAppOps parallely <> parallelCommonOps
246243
247− describe "Construction" $ do
248− parallelOps $ prop "parallely replicateM" . constructWithReplicateM
249−
250− -- take doesn't work well on concurrent streams. Even though it
251− -- seems like take only has a problem when used with parallely.
252− -- wSerialOps $ prop "wSerially iterateM" wSerially . constructWithIterate
253− -- aheadOps $ prop "aheadly iterateM" aheadly . onstructWithIterate
254− -- asyncOps $ prop "asyncly iterateM" asyncly . constructWithIterate
255− -- wAsyncOps $ prop "wAsyncly iterateM" wAsyncly . onstructWithIterate
256− -- parallelOps $ prop "parallely iterateM" parallely . onstructWithIterate
257− -- XXX add tests for fromIndices
258−
259− describe "Functor operations" $ do
260− parallelOps $ functorOps S.fromFoldable "parallely" sortEq
261− parallelOps $ functorOps folded "parallely folded" sortEq
262−
263− describe "Semigroup operations" $ do
264− parallelOps $ semigroupOps "parallely" sortEq
265−
266− describe "Applicative operations" $ do
267− parallelOps $ prop "parallely applicative folded" . applicativeOps folded sortEq
268−
269− -- XXX add tests for indexed/indexedR
270− describe "Zip operations" $ do
271− -- We test only the serial zip with serial streams and the parallel
272− -- stream, because the rate setting in these streams can slow down
273− -- zipAsync.
274− parallelOps $ prop "zip monadic parallely" . zipMonadic S.fromFoldable (==)
275− parallelOps $ prop "zip monadic parallely folded" . zipMonadic folded (==)
276−
277− -- XXX add merge tests like zip tests
278− -- for mergeBy, we can split a list randomly into two lists and
279− -- then merge them, it should result in original list
280− -- describe "Merge operations" $ do
281−
282− describe "Monad operations" $ do
283− parallelOps $ prop "parallely monad then" . monadThen S.fromFoldable sortEq
284−
285− parallelOps $ prop "parallely monad then folded" . monadThen folded sortEq
286−
287− parallelOps $ prop "parallely monad bind" . monadBind S.fromFoldable sortEq
288−
289− parallelOps $ prop "parallely monad bind folded" . monadBind folded sortEq
290−
291244 -- These tests won't work with maxBuffer or maxThreads set to 1, so we
292245 -- exclude those cases from these.
293246 let mkOps :: IsStream t => (t m a -> c) -> [(String, t m a -> c)]
@@ -324,17 +277,3 @@ main = hspec
324277 concurrentFoldrApplication
325278 prop "concurrent foldl application" $ withMaxSuccess maxTestCount
326279 concurrentFoldlApplication
327−
328− describe "Stream transform and combine operations" $ do
329− parallelOps $ transformCombineOpsCommon S.fromFoldable "parallely" sortEq
330−
331− parallelOps $ transformCombineOpsCommon folded "parallely" sortEq
332−
333− describe "Stream elimination operations" $ do
334− parallelOps $ eliminationOps S.fromFoldable "parallely"
335−
336− parallelOps $ eliminationOps folded "parallely folded"
337−
338− parallelOps $ eliminationOpsWord8 S.fromFoldable "parallely"
339−
340− parallelOps $ eliminationOpsWord8 folded "parallely folded"