IntersectMBO / cardano-ledger

The ledger implementation and specifications of the Cardano blockchain.
Apache License 2.0
262 stars 155 forks source link

Added additional operators single_ and append_ to operations on Lists #4658

Closed TimSheard closed 1 month ago

TimSheard commented 2 months ago

Added file ListSplit.hs which introduces data ListSplit and combine functions Added a ListSplit component to ListSpec Added cases to propagateSpec, toPreds, conformsTo, genFromTypeSpec Added a bunch of tests and examplea

Description

Checklist

MaximilianAlgehed commented 2 months ago

I suggest you add appendFn and singleFn to the arbitrary instance for TestableFn fn in Constrained.Properties to make sure that the propagateFun implementaitons are correct.