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

Gen.list ignores min if source is exhausted #38

Open
drdamour opened this issue Sep 28, 2017 · 0 comments
Open

Gen.list ignores min if source is exhausted #38

drdamour opened this issue Sep 28, 2017 · 0 comments

Comments

@drdamour
Copy link

i ran into a lot of random test failures for something that had

static Generator<List<Integer>> ints(){

    Gen.list(
        Gen.these(1,2,3),
            2,
            2
    )
}

I expected to only get 1 entry (no entrys that violated my rules of min=2) but got 2, 1 violation the rules.

workaround is to append a filter after

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant