Skip to content

Commit

Permalink
Update Lambda.hs
Browse files Browse the repository at this point in the history
  • Loading branch information
LeventErkok committed Dec 1, 2024
1 parent 337474e commit 1e6e998
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SBVTestSuite/TestSuite/Basics/Lambda.hs
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ tests =
, goldenCapturedIO "lambda13" $ eval1 [(x, y) | x <- [1..3], y <- [4..6 :: Integer]]
(map (\t -> t^._1 + t^._2), P.map (uncurry (+)))

, goldenCapturedIO "lambda14" $ eval1 [1 .. 5 :: Integer] (zipWith (+) [10..15], P.zipWith (+) [10..15])

, goldenCapturedIO "lambda15" $ eval1 [1 .. 5 :: Integer] (foldl (+) 0, P.sum)
, goldenCapturedIO "lambda16" $ eval1 [1 .. 5 :: Integer] (foldl (*) 1, P.product)
Expand All @@ -89,6 +90,8 @@ tests =
)

, goldenCapturedIO "lambda18" $ eval1 [1 .. 5 :: Integer]
( foldl (\b t -> t^._1 + b + t^._2) 0 . zip [10..15]
, P.foldl (\b (i, a) -> i + b + a) 0 . P.zip [10..15]
)

, goldenCapturedIO "lambda19" $ eval1 [1 .. 5 :: Integer] (foldr (+) 0, P.foldr (+) 0)
Expand Down

0 comments on commit 1e6e998

Please sign in to comment.