Skip to content
New issue

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

support/proptest: Would be nice to have a value range as parameter #94

Open
github-actions bot opened this issue May 28, 2022 · 0 comments
Open
Assignees
Labels
feature tracker Issue tracked by bot

Comments

@github-actions
Copy link

On 2022-05-28 @recmo wrote in 1ec2e50 “Recognize new tags”:

Would be nice to have a value range as parameter
and/or a choice between uniform and 'exponential' distribution.

    num::u64::Any,
    strategy::{BoxedStrategy, Strategy},
};

impl<const BITS: usize, const LIMBS: usize> Arbitrary for Uint<BITS, LIMBS> {
    // FEATURE: Would be nice to have a value range as parameter
    // and/or a choice between uniform and 'exponential' distribution.
    type Parameters = ();
    type Strategy = BoxedStrategy<Self>;

    fn arbitrary_with(_: Self::Parameters) -> BoxedStrategy<Self> {
        // OPT: Copy [`UniformArrayStrategy`] to avoid heap allocations

From src/support/proptest.rs:11

@github-actions github-actions bot added feature tracker Issue tracked by bot labels May 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature tracker Issue tracked by bot
Projects
None yet
Development

No branches or pull requests

1 participant