mirror of
https://github.com/scylladb/scylladb.git
synced 2026-04-23 01:50:35 +00:00
tests: Make rows_assertions::with_rows() verify order
This commit is contained in:
@@ -158,11 +158,15 @@ public:
|
||||
return {*this};
|
||||
}
|
||||
|
||||
// Verifies that the result has the following rows and only that rows, in that order.
|
||||
rows_assertions with_rows(std::initializer_list<std::initializer_list<bytes_opt>> rows) {
|
||||
with_size(rows.size());
|
||||
for (auto&& row : rows) {
|
||||
with_row(row);
|
||||
}
|
||||
BOOST_REQUIRE(std::equal(rows.begin(), rows.end(),
|
||||
_rows->rs().rows().begin(), [] (auto&& lhs, auto&& rhs) {
|
||||
return std::equal(
|
||||
std::begin(lhs), std::end(lhs),
|
||||
std::begin(rhs), std::end(rhs));
|
||||
}));
|
||||
return {*this};
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user