all tests except one ok on map

This commit is contained in:
hugogogo
2022-06-21 18:38:28 +02:00
parent 844701201f
commit 0d98268a74
7 changed files with 215 additions and 199 deletions

View File

@@ -10,8 +10,11 @@ void add_to_list(std::string title, std::string type, A_test* test) {
std::vector< std::vector<A_test*> >::iterator it;
// title != NULL for the first element
if (!title.empty())
if (test == NULL)
{
test_list.push_back(test_sub_list);
return;
}
test->title = title;
test->type = type;