16namespace sequoia::testing
18 template<
class T, std::
size_t MaxDepth,
class Compare>
23 template<
class CheckerType, test_mode Mode>
26 check(equality,
"Emptiness incorrect", logger, queue.empty(), prediction.empty());
27 check(equality,
"Size incorrect", logger, queue.size(), prediction.size());
29 if(!prediction.empty() && !queue.empty())
31 check(flavour,
"Top element incorrect", logger, queue.top(), prediction.top());
34 check(
"Hidden state incorrect", logger, prediction == queue);
35 check(
"Hidden state, symmetry of == incorrect", logger, queue == prediction);
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.
A constexpr prority queue.
A priority_queue suitable for constexpr contexts.
Definition: StaticPriorityQueue.hpp:29
Definition: TestLogger.hpp:183
class template, specializations of which implement various comparisons for the specified type.
Definition: FreeCheckers.hpp:78