You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
From reading the source and the original paper on Quickcheck, I'm getting a better sense of what's going on, but it makes me think that variant should have been provided.
This solution has a couple of deficiencies: it requires two undocumented procedures from quickcheck, and it reproduces the variant-choosing logic from the implementation of arbitrary-integer (which, I think, is to ensure that the first argument to variant is nonnegative).
Have I overlooked a better way of accomplishing this?
The documentation for the
arbitrary
struct says:And
trans
has the contract:(-> any/c generator? generator?)
But nothing indicates how the first argument to that function is used to narrow the set.
The text was updated successfully, but these errors were encountered: