We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Possibly generating an std::pair of begin/end indexes or begin/size. Think of some clever shrinking heuristics as well.
std::pair
The text was updated successfully, but these errors were encountered:
This is what I've been using along with JUCE's Ranges:
template <typename T> struct rc::Arbitrary<juce::Range<T>> { static Gen<juce::Range<T>> arbitrary() { using Tup = std::tuple<T, T>; return gen::map ( gen::suchThat (gen::arbitrary<Tup>(), [] (Tup t) { return std::get<0> (t) <= std::get<1> (t); }), [] (Tup t) { return juce::Range<T> {std::get<0> (t), std::get<1> (t)}; }); } };
Sorry, something went wrong.
No branches or pull requests
Possibly generating an
std::pair
of begin/end indexes or begin/size. Think of some clever shrinking heuristics as well.The text was updated successfully, but these errors were encountered: