tasty-quickcheck 0.10.1.2 → 0.10.2
raw patch · 3 files changed
+21/−13 lines, 3 filesdep ~base
Dependency ranges changed: base
Files
- CHANGELOG.md +6/−1
- Test/Tasty/QuickCheck.hs +10/−7
- tasty-quickcheck.cabal +5/−5
CHANGELOG.md view
@@ -1,11 +1,16 @@ Changes ======= +Version 0.10.2+--------------++Export `QuickCheckMaxShrinks`+ Version 0.10.1.2 ---------------- The only point of this release is to introduce compatibility with GHCs back to 7.0-(see https://github.com/feuerbach/tasty/pull/287).+(see https://github.com/UnkindPartition/tasty/pull/287). Note, however, that these changes are not merged to the master branch, and the future releases will only support the GHC/base versions from the last 5 years,
Test/Tasty/QuickCheck.hs view
@@ -9,6 +9,8 @@ , QuickCheckMaxSize(..) , QuickCheckMaxRatio(..) , QuickCheckVerbose(..)+ , QuickCheckMaxShrinks(..)+ -- * Re-export of Test.QuickCheck , module Test.QuickCheck -- * Internal -- | If you are building a test suite, you don't need these functions.@@ -45,8 +47,7 @@ , verboseCheckAll ) -import Data.Proxy (Proxy(..))-import Data.Typeable (Typeable)+import Data.Typeable import Data.List import Text.Printf import Test.QuickCheck.Random (mkQCGen)@@ -74,7 +75,7 @@ -- | Number of test cases for QuickCheck to generate newtype QuickCheckTests = QuickCheckTests Int- deriving (Num, Ord, Eq, Real, Enum, Integral, Show, Typeable)+ deriving (Num, Ord, Eq, Real, Enum, Integral, Typeable) newtype QuickCheckReplay = QuickCheckReplay (Maybe Int) deriving (Typeable)@@ -85,25 +86,27 @@ -- | Size of the biggest test cases newtype QuickCheckMaxSize = QuickCheckMaxSize Int- deriving (Num, Ord, Eq, Real, Enum, Integral, Show, Typeable)+ deriving (Num, Ord, Eq, Real, Enum, Integral, Typeable) -- | Maximum number of of discarded tests per successful test before giving up. newtype QuickCheckMaxRatio = QuickCheckMaxRatio Int- deriving (Num, Ord, Eq, Real, Enum, Integral, Show, Typeable)+ deriving (Num, Ord, Eq, Real, Enum, Integral, Typeable) -- | Show the test cases that QuickCheck generates newtype QuickCheckVerbose = QuickCheckVerbose Bool deriving (Typeable) -- | Number of shrinks allowed before QuickCheck will fail a test.+--+-- @since 0.10.2 newtype QuickCheckMaxShrinks = QuickCheckMaxShrinks Int- deriving (Num, Ord, Eq, Real, Enum, Integral, Show, Typeable)+ deriving (Num, Ord, Eq, Real, Enum, Integral, Typeable) instance IsOption QuickCheckTests where defaultValue = 100 parseValue = -- We allow numeric underscores for readability; see- -- https://github.com/feuerbach/tasty/issues/263+ -- https://github.com/UnkindPartition/tasty/issues/263 fmap QuickCheckTests . safeRead . filter (/= '_') optionName = return "quickcheck-tests" optionHelp = return "Number of test cases for QuickCheck to generate. Underscores accepted: e.g. 10_000_000"
tasty-quickcheck.cabal view
@@ -2,7 +2,7 @@ -- documentation, see http://haskell.org/cabal/users-guide/ name: tasty-quickcheck-version: 0.10.1.2+version: 0.10.2 synopsis: QuickCheck support for the Tasty test framework. description: QuickCheck support for the Tasty test framework. license: MIT@@ -10,8 +10,8 @@ author: Roman Cheplyaka <roma@ro-che.info> maintainer: Roman Cheplyaka <roma@ro-che.info> -- copyright:-homepage: https://github.com/feuerbach/tasty-bug-reports: https://github.com/feuerbach/tasty/issues+homepage: https://github.com/UnkindPartition/tasty+bug-reports: https://github.com/UnkindPartition/tasty/issues category: Testing build-type: Simple extra-source-files: CHANGELOG.md@@ -19,14 +19,14 @@ Source-repository head type: git- location: git://github.com/feuerbach/tasty.git+ location: git://github.com/UnkindPartition/tasty.git subdir: quickcheck library exposed-modules: Test.Tasty.QuickCheck -- other-modules: other-extensions: GeneralizedNewtypeDeriving, DeriveDataTypeable- build-depends: base >= 4.3 && < 5, tagged, tasty >= 1.0.1, random, QuickCheck >= 2.10,+ build-depends: base >= 4.8 && < 5, tagged, tasty >= 1.0.1, random, QuickCheck >= 2.10, optparse-applicative -- hs-source-dirs: