add type in tests
This commit is contained in:
@@ -91,13 +91,18 @@ int main() {
|
||||
|
||||
// execute tests and print them :
|
||||
int size = test_list.size();
|
||||
int sub_size;
|
||||
for(int i = 0; i < size; i++)
|
||||
{
|
||||
std::cout
|
||||
<< "\n" B_YELLOW "[" << i + 1 << "/" << size << "] "
|
||||
// << test_list[i]->title << RESET "\n";
|
||||
<< RESET "\n";
|
||||
test_list[i]->func();
|
||||
{
|
||||
std::cout << "\n" B_YELLOW "[" << i + 1 << "/" << size << "] "
|
||||
<< test_list[i][0]->title << RESET << "\n";
|
||||
sub_size = test_list[i].size();
|
||||
for (int j = 0; j < sub_size; j++)
|
||||
{
|
||||
std::cout << "\n" << B_CYAN << "-- " << test_list[i][j]->type
|
||||
<< " --" << RESET "\n";
|
||||
test_list[i][j]->func();
|
||||
}
|
||||
}
|
||||
std::cout << "\n";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user