Closed mdales closed 2 years ago
@avsm pointed out that it might be nice to tidy away all the match testing on optionals. I did look into this (and thanks to @patricoferris for his ML support), but unfortunately in Ligo's flavour of ML I can't express a polymorphic function that contains a value comparison test, so I plan to leave them as is.
https://gitlab.com/ligolang/ligo/-/blob/dev/gitlab-pages/docs/faq/polymorphic-comparison.md
Adds more contract unit testing, in particular more negative testing, and also have the tests check the state of the contract. Specifically:
This is far from complete, but I think this is enough to be merged as is with the intent that we'll expand on it as we improve on things over time. It certainly is better than where we were.