O_Egor

test_runner.cpp

Oct 15th, 2022 (edited)
746
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.26 KB | None | 0 0
  1. #include "test_runner.h"
  2.  
  3. using namespace std;
  4.  
  5.  
  6. TestRunner::~TestRunner()
  7. {
  8.     if (failedTests > 0)
  9.     {
  10.         cerr << "There are " << failedTests << " failed tests!\n";
  11.         exit(1);
  12.     }
  13. }
  14.  
  15. void Assert(bool b, const string& hint)
  16. {
  17.     AssertEqual(b, true, hint);
  18. }
Advertisement
Add Comment
Please, Sign In to add comment