Test.cpp 311 B

1234567891011
  1. #include "Test.h"
  2. Test::Test(const char* name) : tests(0), successTests(0), name(name) {
  3. }
  4. void Test::finalize() {
  5. std::cout << ((successTests == tests) ? GREEN : RED);
  6. std::cout << name << " Tests: " << successTests << " / " << tests << " succeeded\n" << RESET;
  7. tests = 0;
  8. successTests = 0;
  9. }