| 13 | |
| 14 | template <class T> |
| 15 | void assert_not_equal(T not_expected, T actual, bool kill = false) { |
| 16 | if (not_expected == actual) { |
| 17 | ANY_FAILED = true; |
| 18 | cout << "Assertion failed:" << endl; |
| 19 | cout << "Not expected: " << not_expected << endl; |
| 20 | cout << " Actual: " << actual << endl; |
| 21 | if (kill) assert(false); |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | void assert_true(bool actual, bool kill = false) { |
| 26 | if (true != actual) { |