Working on unit tests for class world

This commit is contained in:
2021-08-03 11:25:12 -04:00
parent 91d7e1c15d
commit 202c5a24ba
13 changed files with 240 additions and 103 deletions

View File

@@ -15,7 +15,20 @@
#endif
namespace util {
std::string id_vector_debug_string(const IdVector &idv) {
std::ostringstream oss;
bool first = true;
for (int64_t id : idv) {
if (!first) oss << ",";
oss << id;
first = false;
}
return oss.str();
}
IdVector sort_union_id_vectors(const IdVector &v1, const IdVector &v2) {
IdVector result(v1.size() + v2.size());
int next = 0;