cabal-test-quickcheck 0.1.4 → 0.1.5
raw patch · 2 files changed
+7/−6 lines, 2 filesdep ~QuickCheckPVP ok
version bump matches the API change (PVP)
Dependency ranges changed: QuickCheck
API changes (from Hackage documentation)
Files
cabal-test-quickcheck.cabal view
@@ -1,5 +1,5 @@ name: cabal-test-quickcheck-version: 0.1.4+version: 0.1.5 license: MIT license-file: LICENSE author: Timothy Jones@@ -26,7 +26,7 @@ build-depends: base >= 4.6 && < 4.8, Cabal >= 1.16 && < 1.23,- QuickCheck >= 2.6 && < 2.8+ QuickCheck >= 2.8 && < 2.9 source-repository head type: git
src/Distribution/TestSuite/QuickCheck.hs view
@@ -118,10 +118,11 @@ -- | Converts a QuickCheck 'Result' into a Cabal 'Progress'. toProgress :: Result -> Progress toProgress result = Finished $ case result of- Success {} -> Pass- GaveUp {} -> Fail "Gave up"- Failure { output } -> Fail $ tidyFail output- NoExpectedFailure {} -> Fail "Expected failure when none occurred"+ Success {} -> Pass+ GaveUp {} -> Fail "Gave up"+ Failure { output } -> Fail $ tidyFail output+ NoExpectedFailure {} -> Fail "Expected failure when none occurred"+ InsufficientCoverage {} -> Fail "Insufficient coverage in test" tidyFail :: String -> String tidyFail output