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
No known key found for this signature in database
GPG key ID: DE48307B8B0D381A
11 changed files with 526 additions and 178 deletions

View file

@ -63,6 +63,7 @@
#include "internal/catch_capture_matchers.h"
#endif
#include "internal/catch_generators.hpp"
#include "internal/catch_generators_generic.hpp"
#include "internal/catch_generators_specific.hpp"
// These files are included here so the single_include script doesn't put them