cabal-detailed-quickcheck 0.1.1.7 → 0.1.2.0
raw patch · 3 files changed
+14/−9 lines, 3 filesPVP ok
version bump matches the API change (PVP)
API changes (from Hackage documentation)
Files
- CHANGELOG.md +5/−0
- cabal-detailed-quickcheck.cabal +2/−2
- lib/Distribution/TestSuite/QuickCheck.hs +7/−7
CHANGELOG.md view
@@ -1,5 +1,10 @@ # Revision history for cabal-detailed-quickcheck +## 0.1.2.0 — 2022-09-05++* Fixed verbosity switching.+* Updated documentation.+ ## 0.1.1.7 — 2022-09-03 * Improved documentation.
cabal-detailed-quickcheck.cabal view
@@ -1,6 +1,6 @@ cabal-version: 2.4 name: cabal-detailed-quickcheck-version: 0.1.1.7+version: 0.1.2.0 synopsis: QuickCheck for Cabal tests description: Turn QuickCheck properties into detailed Cabal tests homepage: https://github.com/schuelermine/cabal-detailed-quickcheck@@ -31,4 +31,4 @@ source-repository this type: git location: https://github.com/schuelermine/cabal-detailed-quickcheck.git- tag: 0.1.1.7+ tag: 0.1.2.0
lib/Distribution/TestSuite/QuickCheck.hs view
@@ -45,18 +45,17 @@ -- +====================+==============+=================================================================================+ -- | @silent@ | Booleans | If true, all output is disabled. | -- | | | Sets 'verbosity' to 'Silent'. See 'QC.chatty'. |--- | | | Note that setting a verbosity option to false does not undo setting it to true, |--- | | | but lowers the verbosity by one level. |+-- | | | Disabling Silent raises the verbosity to Chatty if is not already higher | -- +--------------------+--------------+---------------------------------------------------------------------------------+ -- | @chatty@ | Booleans | If true, the default amount of output is emitted by QuickCheck. | -- | | | Sets 'verbosity' to 'Chatty'. See 'QC.chatty'. |--- | | | Note that setting a verbosity option to false does not undo setting it to true, |--- | | | but lowers the verbosity by one level. |+-- | | | Note that setting this verbosity option to false does not undo setting it to |+-- | | | true, but lowers the verbosity by one level if it is not already lower. | -- +--------------------+--------------+---------------------------------------------------------------------------------+ -- | @verbose@ | Booleans | If true, prints checked values as output. | -- | | | Sets 'verbosity' to 'Verbose'. See 'QC.verbose'. |--- | | | Note that setting a verbosity option to false does not undo setting it to true, |--- | | | but lowers the verbosity by one level. |+-- | | | Note that setting this verbosity option to false does not undo setting it to |+-- | | | true, but lowers the verbosity by one level if it is not already lower. | -- +--------------------+--------------+---------------------------------------------------------------------------------+ -- | @verboseShrinking@ | Booleans | If true, prints all checked and shrunk values as output. | -- | | | See 'QC.verboseShrinking'. |@@ -136,7 +135,8 @@ -- ! [PARTIAL] This function fails when passed Silent switchVerbosity :: Verbosity -> Bool -> Verbosity -> Verbosity-switchVerbosity v' q v = bool max min q v $ bool id pred q v'+switchVerbosity v' True v = v'+switchVerbosity v' False v = min (pred v') v -- | Arguments for altering property test behaviour. -- These can be altered in the final Cabal 'T.Test' using 'T.setOption'.