Open Maia-Everett opened 7 years ago
Right now, to write an it.uses declaration iterating over a range of ints, I have to write:
it.uses
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.
uses
IntStream
LongStream
DoubleStream
mapToObj
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()
.mapToObj(x -> x)
.boxed()
Right now, to write an
it.uses
declaration iterating over a range of ints, I have to write:It would be nice if there was a
uses
declaration acceptingIntStream
directly (and perhapsLongStream
andDoubleStream
) so that themapToObj
call could be omitted, reducing clutter.