16namespace sequoia::testing
18 template<
class T, std::
size_t Npartitions, std::
size_t NelementsPerPartition, std::
integral IndexType>
23 template<
class CheckType, test_mode Mode>
26 impl::check_details(flavour, logger, actual, prediction);
29 template<test_mode Mode>
32 for (std::size_t i{}; i < prediction.size(); ++i)
34 const auto message{ std::string{
"Partition "}.append(std::to_string(i)) };
35 check(with_best_available, message +
": iterator", logger, actual.begin_partition(i), actual.end_partition(i), (prediction.begin() + i)->begin(), (prediction.begin() + i)->end());
37 check(with_best_available, message +
": riterator", logger, actual.rbegin_partition(i), actual.rend_partition(i), std::rbegin(*(prediction.begin() + i)), std::rend(*(prediction.begin() + i)));
bool check(CheckType flavour, std::string description, test_logger< Mode > &logger, Iter first, Sentinel last, PredictionIter predictionFirst, PredictionSentinel predictionLast, tutor< Advisor > advisor={})
The workhorse for comparing the contents of ranges.
Definition: FreeCheckers.hpp:377
Utilities for checking regular semantics.
Classes implementing the concept of a linearly partitioned sequence of data.
Definition: PartitionedData.hpp:1099
Definition: TestLogger.hpp:183
Definition: FreeCheckers.hpp:87
class template, specializations of which implement various comparisons for the specified type.
Definition: FreeCheckers.hpp:78