tweag / cooked-validators

MIT License
39 stars 11 forks source link

Safer testing API #334

Closed gabrielhdt closed 1 year ago

gabrielhdt commented 1 year ago

To promote proper error testing, discard testFails which is unsafe because it doesn't distinguish errors (so an assertion failure in the testing code is as successful as a validation error). All failure testing functions must be provided a predicate to check the error returned by the blockchain.