2-- Module : Streamly.Test.Data.Stream
3-- Copyright : (c) 2019 Composewell technologies
4-- License : BSD-3-Clause
5-- Maintainer : streamly@composewell.com
6-- Stability : experimental
9module Streamly.Test.Data.Stream (main) where
11import qualified Streamly.Data.Fold as Fold
12import qualified Streamly.Data.Stream as Stream
14import Test.Hspec.QuickCheck
18moduleName = "Data.Stream"
20testgroupsOf :: Expectation
23 (Stream.groupsOf 2 Fold.sum (Stream.enumerateFromTo 1 10))
24 `shouldReturn` [3::Int, 7, 11, 15, 19]
30 modifyMaxSuccess (const 1) $ do
31 describe moduleName $ do
32 describe "Repeated Fold" $ do
33 prop "testgroupsOf" testgroupsOf
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list