add type in tests

This commit is contained in:
hugogogo
2022-06-15 21:04:31 +02:00
parent bb4ac9963d
commit 32c413f741
5 changed files with 65 additions and 32 deletions

View File

@@ -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";