Safe Haskell | None |
---|---|
Language | Haskell2010 |
Utilities for arbitrary data generation in property tests.
Synopsis
Documentation
minTimestamp :: Timestamp Source #
Minimal (earliest) timestamp used for Arbitrary (CValue 'CTimestamp)
maxTimestamp :: Timestamp Source #
Maximal (latest) timestamp used for Arbitrary (CValue 'CTimestamp)
midTimestamp :: Timestamp Source #
Median of minTimestamp
and maxTimestamp
.
Useful for testing (exactly half of generated dates will be before and after
this date).
Orphan instances
Arbitrary Timestamp Source # | |
Arbitrary Mutez Source # | |
Arbitrary (CValue CInt) Source # | |
Arbitrary (CValue CMutez) Source # | |
Arbitrary (CValue CKeyHash) Source # | |
Arbitrary (CValue CTimestamp) Source # | |
arbitrary :: Gen (CValue CTimestamp) # shrink :: CValue CTimestamp -> [CValue CTimestamp] # | |
(Arbitrary (Value' instr a), Arbitrary (Value' instr b)) => Arbitrary (Value' instr (TPair a b)) Source # | |
Arbitrary (Value' instr TUnit) Source # | |
Arbitrary (Value' instr a) => Arbitrary (Value' instr (TList a)) Source # | |
Arbitrary (CValue a) => Arbitrary (Value' instr (Tc a)) Source # | |