aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorYann Herklotz <git@yannherklotz.com>2019-10-06 22:40:06 +0100
committerYann Herklotz <git@yannherklotz.com>2019-10-06 22:58:18 +0100
commit5815e527f7e3b65078e2ad19df3538bb701ec7ac (patch)
tree527effa2e0c39c1ba92745a60993e26c38975888 /test
parent7377b2e83143fc45f83b0abc974aafbf6b6a3dfe (diff)
downloadverismith-5815e527f7e3b65078e2ad19df3538bb701ec7ac.tar.gz
verismith-5815e527f7e3b65078e2ad19df3538bb701ec7ac.zip
[Fix #63] Make build pass again
Diffstat (limited to 'test')
-rw-r--r--test/Property.hs26
1 files changed, 0 insertions, 26 deletions
diff --git a/test/Property.hs b/test/Property.hs
index bec740c..a57f92c 100644
--- a/test/Property.hs
+++ b/test/Property.hs
@@ -16,8 +16,6 @@ import qualified Data.Graph.Inductive as G
import Data.Text (Text)
import Hedgehog (Gen, Property, (===))
import qualified Hedgehog as Hog
-import Hedgehog.Function (Arg, Vary)
-import qualified Hedgehog.Function as Hog
import qualified Hedgehog.Gen as Hog
import qualified Hedgehog.Range as Hog
import Parser (parserTests)
@@ -45,30 +43,6 @@ acyclicGraph = Hog.property $ do
. getCircuit
$ g
-type GenFunctor f a b c =
- ( Functor f
- , Show (f a)
- , Show a, Arg a, Vary a
- , Show b, Arg b, Vary b
- , Show c
- , Eq (f c)
- , Show (f c)
- )
-
-mapCompose
- :: forall f a b c
- . GenFunctor f a b c
- => (forall x . Gen x -> Gen (f x))
- -> Gen a
- -> Gen b
- -> Gen c
- -> Property
-mapCompose genF genA genB genC = Hog.property $ do
- g <- Hog.forAllFn $ Hog.fn @a genB
- f <- Hog.forAllFn $ Hog.fn @b genC
- xs <- Hog.forAll $ genF genA
- fmap (f . g) xs === fmap f (fmap g xs)
-
propertyResultInterrupted :: Property
propertyResultInterrupted = do
mapCompose genResult