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

Add convenience methods for primitive streams to Description.uses #92

Open
Maia-Everett opened this issue Dec 2, 2016 · 1 comment
Open

Comments

@Maia-Everett
Copy link

Right now, to write an it.uses declaration iterating over a range of ints, I have to write:

it.uses(IntStream.rangeClosed(low, high).mapToObj(x -> x)).toShow((expect, number) -> ...);

It would be nice if there was a uses declaration accepting IntStream directly (and perhaps LongStream and DoubleStream) so that the mapToObj call could be omitted, reducing clutter.

@RichardWarburton
Copy link
Owner

Hi, in light of junit-5 I have no immediate plans for improvement to lambda-behave. I would accept a PR.

btw, you don't have to use .mapToObj(x -> x) you can just call .boxed()

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