@@ -519,6 +519,16 @@ unzip =
519 let v2 = (6, ["aa", "bb", "cc"])
519 let v2 = (6, ["aa", "bb", "cc"])
520 assert (v1 == v2)
520 assert (v1 == v2)
523+postscan = forAll (listOf (chooseInt (intMin, intMax))) $ \ls ->
527+ $ S.fold (F.postscan FL.sum FL.toList)
529+ let v2 = scanl1 (+) ls
522many :: Property
532many :: Property
524 forAll (listOf (chooseInt (0, 100))) $ \lst ->
534 forAll (listOf (chooseInt (0, 100))) $ \lst ->
@@ -734,6 +744,7 @@ main = hspec $ do
735 -- Transformation
745 -- Transformation
736 prop "scan" scan
746 prop "scan" scan
747+ prop "postscan" Main.postscan
737 -- rsequence
748 -- rsequence
738 -- Functor instance
749 -- Functor instance
739 prop "rmapM" Main.rmapM
750 prop "rmapM" Main.rmapM