R-Type  2
Doom but in better
Loading...
Searching...
No Matches
main.cpp
Go to the documentation of this file.
1#include "Tests.hpp"
2
3int main(void) {
4 int ok_test = tests.size();
5
6 for (auto &test : tests) {
7 ok_test += test();
8 }
9
10 cleanup();
11 std::cout << "Successful tests: " << ok_test << "\tFailed tests: " << tests.size() - ok_test << std::endl;
12 return 0;
13}
const std::vector< std::function< int(void)> > tests
A collection of test functions to be executed.
Definition Tests.hpp:124
void cleanup(void)
Cleans up any resources or states after tests.
Definition Tests.cpp:48
int main(void)
Definition main.cpp:3