Iterable
Generate iterable values.
infiniteStream
Generate infinite Stream
of values generated by arb
.
The Stream
structure provided by fast-check implements IterableIterator<T>
and comes with useful helpers to manipulate it.
Signatures:
fc.infiniteStream(arb)
with:
arb
— arbitrary instance responsible to generate values
Usages:
fc.infiniteStream(fc.nat(9));
// Examples of generated values: Stream(…)…
Resources: API reference.
Available since 1.8.0.