@@ -6,12 +6,12 @@ module Test.Control.Concurrent.Class.MonadMVar.Strict.WHNF (tests) where
6
6
7
7
import Control.Concurrent.Class.MonadMVar.Strict
8
8
import Control.Monad (void )
9
+ import Control.Monad.IOSim (monadicIOSim_ )
9
10
import Data.Typeable (Typeable )
10
11
import NoThunks.Class (OnlyCheckWhnf (OnlyCheckWhnf ), unsafeNoThunks )
11
12
import Test.QuickCheck.Monadic (PropertyM , monadicIO , monitor , run )
12
13
import Test.Tasty (TestTree , testGroup )
13
14
import Test.Tasty.QuickCheck (Fun , applyFun , counterexample , testProperty )
14
- import Test.Utils (monadicSim )
15
15
16
16
{- ------------------------------------------------------------------------------
17
17
Main test tree
@@ -40,21 +40,21 @@ tests = testGroup "Test.Control.Concurrent.Class.MonadMVar.Strict" [
40
40
]
41
41
, testGroup " IOSim" [
42
42
testProperty " prop_newMVar" $ \ x f ->
43
- monadicSim $ prop_newMVar x f
43
+ monadicIOSim_ $ prop_newMVar x f
44
44
, testProperty " prop_putMVar" $ \ x f ->
45
- monadicSim $ prop_putMVar x f
45
+ monadicIOSim_ $ prop_putMVar x f
46
46
, testProperty " prop_swapMVar" $ \ x f ->
47
- monadicSim $ prop_swapMVar x f
47
+ monadicIOSim_ $ prop_swapMVar x f
48
48
, testProperty " prop_tryPutMVar" $ \ x f ->
49
- monadicSim $ prop_tryPutMVar x f
49
+ monadicIOSim_ $ prop_tryPutMVar x f
50
50
, testProperty " prop_modifyMVar_" $ \ x f ->
51
- monadicSim $ prop_modifyMVar_ x f
51
+ monadicIOSim_ $ prop_modifyMVar_ x f
52
52
, testProperty " prop_modifyMVar" $ \ x f ->
53
- monadicSim $ prop_modifyMVar x f
53
+ monadicIOSim_ $ prop_modifyMVar x f
54
54
, testProperty " prop_modifyMVarMasked_" $ \ x f ->
55
- monadicSim $ prop_modifyMVarMasked_ x f
55
+ monadicIOSim_ $ prop_modifyMVarMasked_ x f
56
56
, testProperty " prop_modifyMVarMasked" $ \ x f ->
57
- monadicSim $ prop_modifyMVarMasked x f
57
+ monadicIOSim_ $ prop_modifyMVarMasked x f
58
58
]
59
59
]
60
60
]
0 commit comments