Working on unit tests for class world
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user