tests are receving as much argument as necessary, and print works with map
This commit is contained in:
@@ -4,23 +4,19 @@
|
||||
|
||||
// functions
|
||||
// **********************************************
|
||||
void add_to_list(std::string s, A_test* s1, A_test* s2, A_test* s3, A_test* s4) {
|
||||
void add_to_list(std::string title, std::string type, A_test* test) {
|
||||
|
||||
std::vector<A_test*> test_sub_list;
|
||||
std::vector<A_test*> test_sub_list;
|
||||
std::vector< std::vector<A_test*> >::iterator it;
|
||||
|
||||
s1->title = s;
|
||||
s2->title = s;
|
||||
s3->title = s;
|
||||
s4->title = s;
|
||||
s1->type = "int";
|
||||
s2->type = "char";
|
||||
s3->type = "std::string";
|
||||
s4->type = "mystruct";
|
||||
test_sub_list.push_back(s1);
|
||||
test_sub_list.push_back(s2);
|
||||
test_sub_list.push_back(s3);
|
||||
test_sub_list.push_back(s4);
|
||||
test_list.push_back(test_sub_list);
|
||||
// title != NULL for the first element
|
||||
if (!title.empty())
|
||||
test_list.push_back(test_sub_list);
|
||||
|
||||
test->title = title;
|
||||
test->type = type;
|
||||
it = test_list.end() - 1;
|
||||
(*it).push_back(test);
|
||||
}
|
||||
void delete_structs() {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user