Advertisement
chzchz

Untitled

Apr 2nd, 2019
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.31 KB | None | 0 0
  1. #include "test_runner.h"
  2. #include <iostream>
  3. #include <string>
  4.  
  5. using namespace std;
  6.  
  7. TestRunner::~TestRunner() {
  8.   if (fail_count > 0) {
  9.     cerr << fail_count << " unit tests failed. Terminate" << endl;
  10.     exit(1);
  11.   }
  12. }
  13. void Assert(bool b, const string &hint) {
  14.   AssertEqual(b, true, hint);
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement