| 2 | |
| 3 | template <class T> |
| 4 | void assert_equal(T expected, T actual, bool kill = false) { |
| 5 | if (!(expected == actual)) { |
| 6 | ANY_FAILED = true; |
| 7 | cout << "Assertion failed:" << endl; |
| 8 | cout << "Expected: " << expected << endl; |
| 9 | cout << " Actual: " << actual << endl; |
| 10 | if (kill) assert(false); |
| 11 | } |
| 12 | } |
| 13 | |
| 14 | template <class T> |
| 15 | void assert_not_equal(T not_expected, T actual, bool kill = false) { |
nothing calls this directly
no outgoing calls
no test coverage detected