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
This is the issue that I have actually faced myself and found quite cumbersome indeed. I'd probably like something similar to how py.test handles its funcargs:
There are few challenges with this approach, though, mostly in resolving the inter-variable dependencies correctly (possibly detecting circular ones). It's nothing really impossible, however :)
I think the approach you suggested in sufficient. Although it's challenging, as you mentioned, it would be nice to see it implemented.
BTW, what do you think about adding another parameter to the sequence generators called 'length', which could be used for fixed length sequences instead of using a pair of min and max?
It could work. But length is important parameter when it comes to implementing the all-too-awesome "shrink" operation, so I need to consider how any change here would affect that future implementation of shrink. Actually, though, it might make it easier, for length is essentially an equivalent of size from original Haskell's Arbitrary typeclass.
Hi Karol,
I'd like to generate two lists of the same length, which I thought might look something like this:
However, currently it doesn't work. Would it be possible to implement such a feature?
Thanks,
Anton
The text was updated successfully, but these errors were encountered: