on master help sign in
Add test for zipAsyncApplicative.
commit60a72a0f62da1cad5a5aac0aef49d3a3d901fed3 authorpranaysashank <pranaysashank@composewell.com> dateThu 26 Nov 2020, 15:10 (6 years ago) parent7263bf5
3 files changed+6
test/Streamly/Test/Prelude/Ahead.hs+2 test/Streamly/Test/Prelude/Async.hs+2 test/Streamly/Test/Prelude/WAsync.hs+2
test/Streamly/Test/Prelude/Ahead.hs+2
@@ -94,6 +94,8 @@ main = hspec
9494 -- We test only the serial zip with serial streams and the parallel
9595 -- stream, because the rate setting in these streams can slow down
9696 -- zipAsync.
97+ aheadOps $ prop "zip applicative aheadly" . zipAsyncApplicative S.fromFoldable (==)
98+ aheadOps $ prop "zip applicative aheadly folded" . zipAsyncApplicative folded (==)
9799 aheadOps $ prop "zip monadic aheadly" . zipAsyncMonadic S.fromFoldable (==)
98100 aheadOps $ prop "zip monadic aheadly folded" . zipAsyncMonadic folded (==)
99101
test/Streamly/Test/Prelude/Async.hs+2
@@ -68,6 +68,8 @@ main = hspec
6868 -- We test only the serial zip with serial streams and the parallel
6969 -- stream, because the rate setting in these streams can slow down
7070 -- zipAsync.
71+ asyncOps $ prop "zip applicative asyncly" . zipAsyncApplicative S.fromFoldable (==)
72+ asyncOps $ prop "zip applicative asyncly folded" . zipAsyncApplicative folded (==)
7173 asyncOps $ prop "zip monadic asyncly" . zipAsyncMonadic S.fromFoldable (==)
7274 asyncOps $ prop "zip monadic asyncly folded" . zipAsyncMonadic folded (==)
7375
test/Streamly/Test/Prelude/WAsync.hs+2
@@ -73,6 +73,8 @@ main = hspec
7373 -- stream, because the rate setting in these streams can slow down
7474 -- zipAsync.
7575 do
76+ wAsyncOps $ prop "zip applicative wAsyncly" . zipAsyncApplicative S.fromFoldable (==)
77+ wAsyncOps $ prop "zip applicative wAsyncly folded" . zipAsyncApplicative folded (==)
7678 wAsyncOps $
7779 prop "zip monadic wAsyncly" . zipAsyncMonadic S.fromFoldable (==)
7880 wAsyncOps $ prop "zip monadic wAsyncly folded" . zipAsyncMonadic folded (==)