Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- data CHAINExample era = CHAINExample {
- startState ∷ ChainState era
- newBlock ∷ Block (BHeader MockCrypto) era
- intendedResult ∷ Either (NonEmpty (PredicateFailure (CHAIN era))) (ChainState era)
- testCHAINExample ∷ HasCallStack ⇒ CHAINExample C → Assertion
Documentation
data CHAINExample era Source #
CHAINExample | |
|
testCHAINExample ∷ HasCallStack ⇒ CHAINExample C → Assertion Source #
Runs example, applies chain state transition system rule (STS), and checks that trace ends with expected state or expected error.