mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-20 00:21:35 +00:00
- Update to 2.1.0
Obtained from: FreeBSD Haskell
This commit is contained in:
parent
0eefd61047
commit
4a6a9d0d45
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277431
@ -6,8 +6,7 @@
|
||||
#
|
||||
|
||||
PORTNAME= testpack
|
||||
PORTVERSION= 2.0.1
|
||||
PORTREVISION= 1
|
||||
PORTVERSION= 2.1.0
|
||||
CATEGORIES= devel haskell
|
||||
|
||||
MAINTAINER= haskell@FreeBSD.org
|
||||
|
@ -1,2 +1,2 @@
|
||||
SHA256 (cabal/testpack-2.0.1.tar.gz) = 621a6bb0bc5d6be6460c5892338b78f42fdf33c6291ef58e296fefb654e16979
|
||||
SIZE (cabal/testpack-2.0.1.tar.gz) = 14574
|
||||
SHA256 (cabal/testpack-2.1.0.tar.gz) = 8128f3a409855fca1d431391b2cbf6a9f4dec32dd6f26825960b936fe578c476
|
||||
SIZE (cabal/testpack-2.1.0.tar.gz) = 14882
|
||||
|
@ -1,38 +0,0 @@
|
||||
--- ./src/Test/HUnit/Tools.hs.orig 2010-08-11 21:28:05.000000000 +0200
|
||||
+++ ./src/Test/HUnit/Tools.hs 2011-03-13 15:12:06.976261554 +0100
|
||||
@@ -61,7 +61,7 @@
|
||||
HU.TestLabel lbl $ HU.TestCase $
|
||||
do result <- localquickCheckWithResult config property
|
||||
case result of
|
||||
- Success _ -> return ()
|
||||
+ Success _ _ _ -> return ()
|
||||
_ -> HU.assertFailure (show result)
|
||||
|
||||
-- Modified from HUnit
|
||||
@@ -159,7 +159,7 @@
|
||||
-- | Tests a property, using test arguments, produces a test result, and prints the results to 'stdout'.
|
||||
localquickCheckWithResult :: Testable prop => Args -> prop -> IO Result
|
||||
localquickCheckWithResult args p =
|
||||
- do tm <- newTerminal
|
||||
+ do tm <- newStdioTerminal
|
||||
rnd <- case replay args of
|
||||
Nothing -> newStdGen
|
||||
Just (rnd,_) -> return rnd
|
||||
@@ -176,7 +176,6 @@
|
||||
, collected = []
|
||||
, expectedFailure = False
|
||||
, randomSeed = rnd
|
||||
- , isShrinking = False
|
||||
, numSuccessShrinks = 0
|
||||
, numTryShrinks = 0
|
||||
} (unGen (property p))
|
||||
@@ -207,8 +206,7 @@
|
||||
runATest st f =
|
||||
do
|
||||
let size = computeSize st (numSuccessTests st) (numDiscardedTests st)
|
||||
- MkRose mres ts <- protectRose (unProp (f rnd1 size))
|
||||
- res <- mres
|
||||
+ MkRose res ts <- protectRose (return $ unProp (f rnd1 size))
|
||||
callbackPostTest st res
|
||||
|
||||
case ok res of
|
@ -1,17 +0,0 @@
|
||||
--- ./src/Test/QuickCheck/Instances.hs.orig 2010-08-11 21:28:05.000000000 +0200
|
||||
+++ ./src/Test/QuickCheck/Instances.hs 2011-03-13 14:56:30.837261486 +0100
|
||||
@@ -36,12 +36,14 @@
|
||||
instance (CoArbitrary k, CoArbitrary v, Eq k, Ord k) => CoArbitrary (Map.Map k v) where
|
||||
coarbitrary = coarbitrary . Map.keys
|
||||
|
||||
+{-
|
||||
instance Arbitrary Word8 where
|
||||
arbitrary = sized $ \n -> choose (0, min (fromIntegral n) maxBound)
|
||||
|
||||
instance CoArbitrary Word8 where
|
||||
coarbitrary n = variant (if n >= 0 then 2 * x else 2 * x + 1)
|
||||
where x = abs . fromIntegral $ n
|
||||
+-}
|
||||
|
||||
instance Random Word8 where
|
||||
randomR (a, b) g = (\(x, y) -> (fromInteger x, y)) $
|
Loading…
Reference in New Issue
Block a user