Closed Bill closed 9 months ago
@Bill nah, we can certainly make string generators honor @Size
.
@Bill Let me know how this change suits your needs.
@Bill When you get a moment, would you have a look at the above change, and close this issue if the change meets your needs? Thanks!
Closing, as fix should be on HEAD. Re-open if it doesn't work for you.
I saw the answer to https://github.com/pholser/junit-quickcheck/issues/149 but I don't feel like it's a solution to my (simpler) problem. I simply want to generate
String
s with length in a range. It seems obvious to me that theSize
annotation should operate onString
parameters.But something like this:
results in:
Am I not understanding the spirit of QuickCheck? Must I really resort to a custom generator for this?