Generator monad
Modulefoundation-0.0.30Haskell2010
Foundation.Check
An implementation of a test framework and property expression & testing
- 5 types
- 2 classes
- 14 values
- Packagefoundation-0.0.30
- Exports21
- LanguageHaskell2010
- LicenceBSD-3-Clause
- SourceCheck.hs
Instances34Arbitrary, …
Arbitrary AsciiStringDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Char7Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word128Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word256Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary StringDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary FieldDefined in foundation-0.0.30 · Foundation.Format.CSV.TypesArbitrary IntegerDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary NaturalDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Int16Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Int32Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Int64Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Int8Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word16Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word32Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word64Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary Word8Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary BoolDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary CharDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary DoubleDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary FloatDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary IntDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary WordDefined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary (CountOf ty)Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary a => Arbitrary (Maybe a)Defined in foundation-0.0.30 · Foundation.Check.ArbitraryArbitrary a => Arbitrary [a]Defined in foundation-0.0.30 · Foundation.Check.ArbitraryKnownNat n => Arbitrary (Zn n)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(NatWithinBound Word64 n, KnownNat n) => Arbitrary (Zn64 n)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, Arbitrary b) => Arbitrary (a, b)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, KnownNat n, NatWithinBound Int n) => Arbitrary (ListN n a)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary l, Arbitrary r) => Arbitrary (Either l r)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, Arbitrary b, Arbitrary c) => Arbitrary (a, b, c)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d) => Arbitrary (a, b, c, d)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e) => Arbitrary (a, b, c, d, e)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary(Arbitrary a, Arbitrary b, Arbitrary c, Arbitrary d, Arbitrary e, Arbitrary f) => Arbitrary (a, b, c, d, e, f)Defined in foundation-0.0.30 · Foundation.Check.Arbitrary
Call one of the generator weighted
Name of a test
Property
9 declarationsThe type of check this test did for a property
Instances1IsProperty
IsProperty PropertyCheckDefined in foundation-0.0.30 · Foundation.Check.Property
Instances1IsProperty
IsProperty PropertyDefined in foundation-0.0.30 · Foundation.Check.Property
Instances5IsProperty
IsProperty PropertyDefined in foundation-0.0.30 · Foundation.Check.PropertyIsProperty PropertyCheckDefined in foundation-0.0.30 · Foundation.Check.PropertyIsProperty BoolDefined in foundation-0.0.30 · Foundation.Check.PropertyIsProperty (String, Bool)Defined in foundation-0.0.30 · Foundation.Check.Property(Show a, Arbitrary a, IsProperty prop) => IsProperty (a -> prop)Defined in foundation-0.0.30 · Foundation.Check.Property
A property that check for equality of its 2 members.
value
propertyCompare :: (Show a, Typeable a)=> Stringname of the function used for comparaison, e.g. (<)
-> (a -> a -> Bool)function used for value comparaison
-> avalue left of the operator
-> avalue right of the operator
-> PropertyCheck
value
propertyCompareWith :: Stringname of the function used for comparaison, e.g. (<)
-> (a -> a -> Bool)function used for value comparaison
-> (a -> String)function used to pretty print the values
-> avalue left of the operator
-> avalue right of the operator
-> PropertyCheck
A conjuctive property composed of 2 properties that need to pass
Running a generator for a specific type under a property
Check Plan
4 declarationsInstances5Monad, Functor, Applicative, MonadState, State
Monad CheckDefined in foundation-0.0.30 · Foundation.Check.TypesFunctor CheckDefined in foundation-0.0.30 · Foundation.Check.TypesApplicative CheckDefined in foundation-0.0.30 · Foundation.Check.TypesMonadState CheckDefined in foundation-0.0.30 · Foundation.Check.Typestype State Check = PlanStateDefined in foundation-0.0.30 · Foundation.Check.Types