aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authorJulien Tanguy <julien.tanguy@jhome.fr>2015-06-17 17:51:29 +0200
committerJulien Tanguy <julien.tanguy@jhome.fr>2015-06-17 17:51:29 +0200
commit8bbe088d0a04e46a5f0f0128483c73cbb2405dbe (patch)
treef669c60ce5d8c9d0e654f63402fc4758107d2dcf /test
parentdfcc13bda0f07f012e385d39ea86d7c6e9f9e05f (diff)
downloadhmacaroons-8bbe088d0a04e46a5f0f0128483c73cbb2405dbe.tar.gz
hmacaroons-8bbe088d0a04e46a5f0f0128483c73cbb2405dbe.tar.zst
hmacaroons-8bbe088d0a04e46a5f0f0128483c73cbb2405dbe.zip
Update QuickCheck
[ci skip]
Diffstat (limited to 'test')
-rw-r--r--test/Crypto/Macaroon/Instances.hs13
1 files changed, 0 insertions, 13 deletions
diff --git a/test/Crypto/Macaroon/Instances.hs b/test/Crypto/Macaroon/Instances.hs
index c82bbd3..6955637 100644
--- a/test/Crypto/Macaroon/Instances.hs
+++ b/test/Crypto/Macaroon/Instances.hs
@@ -23,19 +23,6 @@ import Test.Tasty.QuickCheck
23 23
24import Crypto.Macaroon 24import Crypto.Macaroon
25 25
26
27-- | Adjust the size parameter, by transforming it with the given
28-- function.
29-- Copied over from QuickCheck 2.8
30scale :: (Int -> Int) -> Gen a -> Gen a
31scale f g = sized (\n -> resize (f n) g)
32
33
34-- | Generates a random subsequence of the given list.
35-- Copied over from QuickCheck 2.8
36sublistOf :: [a] -> Gen [a]
37sublistOf = filterM (\_ -> choose (False, True))
38
39newtype Url = Url { unUrl :: BS.ByteString } deriving (Show) 26newtype Url = Url { unUrl :: BS.ByteString } deriving (Show)
40 27
41instance Arbitrary Url where 28instance Arbitrary Url where