Closed sageserpent-open closed 2 years ago
The cutover is done, but has exposed the need for the following:
Trials.bytes
streaming factory that allows shrinkage.Trials.integers
, or at least some convenience methods to yield strictly positive integers etc.Trials.and
combinator to implement Trails[Tuple2[X, Y]]
etc so that client code doesn't have to pull in an explicit dependency on Cats to make trials of tuples. Not sure if this is going to result in trouble due to ambiguity, when calling withLimit
and then supplyTo
...Implemented 1) and 2) from the above comment and have done some more work in Curium. The only things left on the wish list for Trials
is:
a) bounds on Trials.doubles
and
b) a sample method on a trials.
A nice to have would be some fluent syntax to override the default randomisation seed used internally for the implementation of Trials
.
Fixed by commit 1c799582b94f138f5ff2cbd09e458fe69a596f94 in the Curium repository.
Having mentioned Curium as a project that uses Scalacheck's
Arbitrary
that could potentially benefit from Amercium'sTrials
, it's time to try cutting it over.