-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move `IO` tests to `io-classes` and `IOSim` tests to `io-sim`.
- Loading branch information
Showing
13 changed files
with
121 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
module Main where | ||
|
||
import Test.Control.Concurrent.Class.MonadMVar.Strict.WHNF | ||
|
||
import Test.QuickCheck.Monadic (monadicIO) | ||
import Test.Tasty | ||
import Test.Tasty.QuickCheck | ||
|
||
|
||
main :: IO () | ||
main = defaultMain $ testGroup "strict-mvar" [tests] | ||
|
||
tests :: TestTree | ||
tests = testGroup "Test.Control.Concurrent.Class.MonadMVar.Strict" | ||
[ testGroup "WHNF" | ||
[ testGroup "IO" | ||
[ testProperty "prop_newMVar" $ | ||
monadicIO .: prop_newMVar | ||
, testProperty "prop_putMVar" $ | ||
monadicIO .: prop_putMVar | ||
, testProperty "prop_swapMVar" $ | ||
monadicIO .: prop_swapMVar | ||
, testProperty "prop_tryPutMVar" $ | ||
monadicIO .: prop_tryPutMVar | ||
, testProperty "prop_modifyMVar_" $ | ||
monadicIO .: prop_modifyMVar_ | ||
, testProperty "prop_modifyMVar" $ | ||
monadicIO .: prop_modifyMVar | ||
, testProperty "prop_modifyMVarMasked_" $ | ||
monadicIO .: prop_modifyMVarMasked_ | ||
, testProperty "prop_modifyMVarMasked" $ | ||
monadicIO .: prop_modifyMVarMasked | ||
] | ||
] | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
31 changes: 31 additions & 0 deletions
31
io-sim/test/Test/Control/Concurrent/Class/MonadMVar/Strict.hs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module Test.Control.Concurrent.Class.MonadMVar.Strict where | ||
|
||
import Control.Monad.IOSim | ||
import Test.Control.Concurrent.Class.MonadMVar.Strict.WHNF | ||
|
||
import Test.Tasty | ||
import Test.Tasty.QuickCheck | ||
|
||
tests :: TestTree | ||
tests = testGroup "Test.Control.Concurrent.Class.MonadMVar.Strict" | ||
[ testGroup "WHNF" | ||
[ testGroup "IOSIM" | ||
[ testProperty "prop_newMVar" $ \x f -> | ||
monadicIOSim_ $ prop_newMVar x f | ||
, testProperty "prop_putMVar" $ \x f -> | ||
monadicIOSim_ $ prop_putMVar x f | ||
, testProperty "prop_swapMVar" $ \x f -> | ||
monadicIOSim_ $ prop_swapMVar x f | ||
, testProperty "prop_tryPutMVar" $ \x f -> | ||
monadicIOSim_ $ prop_tryPutMVar x f | ||
, testProperty "prop_modifyMVar_" $ \x f -> | ||
monadicIOSim_ $ prop_modifyMVar_ x f | ||
, testProperty "prop_modifyMVar" $ \x f -> | ||
monadicIOSim_ $ prop_modifyMVar x f | ||
, testProperty "prop_modifyMVarMasked_" $ \x f -> | ||
monadicIOSim_ $ prop_modifyMVarMasked_ x f | ||
, testProperty "prop_modifyMVarMasked" $ \x f -> | ||
monadicIOSim_ $ prop_modifyMVarMasked x f | ||
] | ||
] | ||
] |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.