- Test:
- build combined and filtering iterators with the help of lib::IterTool.
Check correct behaviour of the resulting iterators and verify they fulfil the Lumiera Forward Iterator concept
- Todo:
- implement more iterator tools.... see Ticket #347
Definition at line 81 of file itertools-test.cpp.
|
typedef TestSource::iterator | Iter |
|
|
static ulong | addTwo (int i) |
|
static int | idFunc (int i) |
|
static int | negate (int i) |
|
static bool | takeAll (int) |
|
static bool | takeEve (int i) |
|
static bool | takeOdd (int i) |
|
static bool | takeTrd (int i) |
|
◆ verify_filterExtension()
void verify_filterExtension |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify the ability to extend a filter condition while in the middle of an ongoing iteration.
Typically this means sharpening the filter condition and thus making the filter more restrictive, filtering away more elements of the source stream. But through the ability to add disjunctive and negated clauses, it is also possible to weaken the filter condition
- Note
- in case of a weakened filter condition, there is no reset of the source iterator, i.e. we don't re-evaluate from start, but just from current head.
Definition at line 165 of file itertools-test.cpp.
◆ verify_filterRepetitions()
void verify_filterRepetitions |
( |
| ) |
|
|
inlineprivate |
- Test:
- verify the helper to filter duplicate elements emitted by an source iterator.
This test creates a sequence of numbers with random repetitions.
Definition at line 233 of file itertools-test.cpp.
◆ buildWrappedSingleElement()
void buildWrappedSingleElement |
( |
| ) |
|
|
inlineprivate |
◆ verifyComparisons()
void verifyComparisons |
( |
IT const & |
ii | ) |
|
|
inlineprivate |
- Test:
- verify equality handling and NIL detection for the given iterator/wrapper handed in
Definition at line 339 of file itertools-test.cpp.
The documentation for this class was generated from the following file: