Skip to content

Commit

Permalink
Reinstate some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lehins committed Nov 20, 2023
1 parent bff27ba commit 34ecf36
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions test/Spec/Stateful.hs
Expand Up @@ -180,6 +180,26 @@ statefulSpec =
]
, testGroup "StatefulGen"
[ statefulSpecFor StateGen unStateGen runStateGenT
, statefulSpecFor IOGen unIOGen $ \g action -> do
mg <- newIOGenM (unIOGen g)
res <- action mg
g' <- readGen mg
pure (res, g')
, statefulSpecFor AtomicGen unAtomicGen $ \g action -> do
mg <- newAtomicGenM (unAtomicGen g)
res <- action mg
g' <- readGen mg
pure (res, g')
, statefulSpecFor STGen unSTGen $ \g action -> stToIO $ do
mg <- newSTGenM (unSTGen g)
res <- action mg
g' <- readGen mg
pure (res, g')
, statefulSpecFor TGen unTGen $ \g action -> atomically $ do
mg <- newTGenM (unTGen g)
res <- action mg
g' <- readGen mg
pure (res, g')
]
]

0 comments on commit 34ecf36

Please sign in to comment.