summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNickSmallbone <>2018-01-12 19:10:00 (GMT)
committerhdiff <hdiff@hdiff.luite.com>2018-01-12 19:10:00 (GMT)
commit2c3f9fce021722b750ee1693973eb64ba3619084 (patch)
treeabb09e841906b1df846f4434bb6f1249a782ae87
parent9cd13c9dde75fd52007e20796aee0dabf1a01cb5 (diff)
version 2.11.32.11.3
-rw-r--r--QuickCheck.cabal4
-rw-r--r--Test/QuickCheck/Test.hs8
-rw-r--r--changelog4
3 files changed, 9 insertions, 7 deletions
diff --git a/QuickCheck.cabal b/QuickCheck.cabal
index d821488..4d7dbed 100644
--- a/QuickCheck.cabal
+++ b/QuickCheck.cabal
@@ -1,5 +1,5 @@
Name: QuickCheck
-Version: 2.11.2
+Version: 2.11.3
Cabal-Version: >= 1.8
Build-type: Simple
License: BSD3
@@ -49,7 +49,7 @@ source-repository head
source-repository this
type: git
location: https://github.com/nick8325/quickcheck
- tag: 2.11.2
+ tag: 2.11.3
flag templateHaskell
Description: Build Test.QuickCheck.All, which uses Template Haskell.
diff --git a/Test/QuickCheck/Test.hs b/Test/QuickCheck/Test.hs
index 2972f0e..77ab445 100644
--- a/Test/QuickCheck/Test.hs
+++ b/Test/QuickCheck/Test.hs
@@ -359,11 +359,13 @@ failureSummaryAndReason st res = (summary, full)
concat [
" and " ++
show (numSuccessShrinks st) ++
- concat [ "." ++ show (numTryShrinks st) | full, numTryShrinks st > 0 ] ++
+ concat [ "." ++ show (numTryShrinks st) | showNumTryShrinks ] ++
" shrink" ++
- (if numSuccessShrinks st == 1 && numTryShrinks st == 0 then "" else "s")
- | numSuccessShrinks st > 0 || numTryShrinks st > 0 ] ++
+ (if numSuccessShrinks st == 1 && not showNumTryShrinks then "" else "s")
+ | numSuccessShrinks st > 0 || showNumTryShrinks ] ++
")"
+ where
+ showNumTryShrinks = full && numTryShrinks st > 0
summary :: State -> [(String, Double)]
summary st = reverse
diff --git a/changelog b/changelog
index f284493..2a1deb8 100644
--- a/changelog
+++ b/changelog
@@ -1,5 +1,5 @@
-QuickCheck 2.11.1 (released 2018-01-12)
- * Fix flickering with terminal output.
+QuickCheck 2.11.1 - 2.11.3 (released 2018-01-12)
+ * Cosmetic fixes.
QuickCheck 2.11 (released 2018-01-12)
* New features: