[#594] Add configurable `Mutez` hedgehog generator
Description
Problem: At the moment, Cleveland offers a Mutez generator that uses the type's full range. However, in tests, you usually want the generated values to be constrained to a certain range.
Solution: add a hedgehog generator for Mutez whose range can be
configured by the user. In order to be able to construct a mutez range,
we also have to have an instance of Integral
for Mutez
in scope, so
we added that instance as well.
Related issue(s)
Resolves #594 (closed)
✅ Checklist for your Merge Request
Related changes (conditional)
-
Tests (see short guidelines)
-
If I added new functionality, I added tests covering it. -
If I fixed a bug, I added a regression test to prevent the bug from silently reappearing again.
-
-
Documentation
Stylistic guide (mandatory)
-
My commits comply with the following policy. -
My code complies with the style guide.