Add ChunkGenerator

This generator collects values from the underlying generator until it
has a specified amount of them, and then returns them in one "chunk".
In case the underlying generator does not have enough elements for
a specific chunk, the left-over elements are discarded.

Closes #1538
This commit is contained in:
Martin Hořeňovský
2019-02-23 20:22:46 +01:00
parent 288387fa10
commit 693647c43f
11 changed files with 526 additions and 178 deletions

View File

@@ -1175,5 +1175,5 @@ due to unexpected exception with message:
===============================================================================
test cases: 245 | 185 passed | 56 failed | 4 failed as expected
assertions: 1365 | 1229 passed | 115 failed | 21 failed as expected
assertions: 1378 | 1242 passed | 115 failed | 21 failed as expected