| 16 | |
| 17 | template <class T> |
| 18 | static void assert_equals(const T & expected, const T & actual) { |
| 19 | if (expected != actual) { |
| 20 | std::cerr << "Expected: " << expected << std::endl; |
| 21 | std::cerr << "Actual: " << actual << std::endl; |
| 22 | std::cerr << std::flush; |
| 23 | throw std::runtime_error("Test failed"); |
| 24 | } |
| 25 | } |
| 26 | static void assert_equals(const char * expected, const std::string & actual) { |
| 27 | return assert_equals<std::string>(expected, actual); |
| 28 | } |
no outgoing calls
no test coverage detected