add type in tests
This commit is contained in:
@@ -2,16 +2,29 @@
|
||||
# define TESTS_PROTO_HPP
|
||||
|
||||
#include <vector>
|
||||
#include "A_test.hpp"
|
||||
|
||||
// ************************************
|
||||
// global declarations
|
||||
struct A_test { virtual void func() = 0; };
|
||||
std::vector<A_test*> test_list;
|
||||
void add_to_list(A_test * s1, A_test * s2, A_test * s3, A_test * s4)
|
||||
{ test_list.push_back(s1)
|
||||
; test_list.push_back(s2)
|
||||
; test_list.push_back(s3)
|
||||
; test_list.push_back(s4); }
|
||||
std::vector< std::vector<A_test*> > test_list;
|
||||
void add_to_list(std::string s, A_test* s1, A_test* s2, A_test* s3, A_test* s4) {
|
||||
|
||||
std::vector<A_test*> test_sub_list;
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
// *********************************************
|
||||
|
||||
Reference in New Issue
Block a user