Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 725 Bytes

readme.md

File metadata and controls

16 lines (11 loc) · 725 Bytes

Dispute

This library contains the following basic type classes:

  • Eq - equality
  • Show - printing values as literals for debugging
  • Pprint - pretty-printing values
  • Testable - Eq and Pprint

Testable is useful for test assertion libraries. You can use Dispute functionality test that two values are equal, and if they're not, pretty-print the expected and actual.

Dispute provides instances for common TypeScript types, as well as for any types, using type inspection. It is also extendable to types which can't be compared correctly with type inspection - e.g. church-encoded types.

Dispute is used in the Bedrock test runner.