Gregory Petrosyan
Gregory Petrosyan
`SampledFrom()` does that: https://play.golang.org/p/7YF4zHPkJhS Regarding weights, I believe that for the majority of tests that they are too low-level of a thing to bother. Also, explicit weights create questions like...
Also, for 1-element `SampledFrom()` there is a `Just()` shortcut. So, you *can* do `OneOf(Just(1), Just(2), Just(3))`, but this is just a harder to type and slower `SampledFrom([]int{1, 2, 3})`.
The documentation (and maybe the naming?) should definitely be improved.
Right now all generators enforce the rule that they generate items of the same type (which can be an interface, though). `OneOf(Just(true), Just(0))` is invalid; `OneOf()` assumes that all of...
- wyhash fails `BadSeeds` even with `WYHASH_CONDOM 2` ([smhasher output](https://gist.github.com/flyingmutant/7159d434f20067e548576501ef6e7262))
In general, satisfying arbitrary preconditions is of course impossible :-) However, we can track inside the state machine type if the condition was satisfied, and use that (how exactly?) inside...
> Would you be okay for a PR for #34 ? Yes, although it is not clear yet what the best name would be. `Cleanup` is probably the easiest choice.
Closing as it looks like there is not a lot of value in this.
> Thought I'd take a bit and update it, and was pleasantly surprised by the new API using generics. Awesome stuff! Yep, I was pleasantly surprised how little changes (conceptual,...
Related: #49.