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

Exclusive ranges #70

Open
galderz opened this issue Mar 11, 2020 · 1 comment
Open

Exclusive ranges #70

galderz opened this issue Mar 11, 2020 · 1 comment

Comments

@galderz
Copy link

galderz commented Mar 11, 2020

Is it possible to create a Doubles generator that does not include +Infinite and -Infinite? All the between/range methods take inclusive parameters. Would it be possible to have methods are exclusive? Obviously, you can't something like between(Double.NEGATIVE_INFINITY + 1, Double.POSITIVE_INFINITY - 1)

@hyperpape
Copy link
Contributor

For Doubles, I believe you can use new DoublesDSL().between(-Double.MAX_VALUE, Double.MAX_VALUE).

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

2 participants