| 265 | |
| 266 | template <typename T> |
| 267 | bool expect(const char* what, const T& expected, const T& result) |
| 268 | { |
| 269 | if (expected != result) { |
| 270 | std::cerr |
| 271 | << "ERROR: Expected " << what << " to be (" << expected |
| 272 | << "), but it was (" << result << ')' << std::endl; |
| 273 | return true; |
| 274 | } |
| 275 | return false; |
| 276 | } |
| 277 | |
| 278 | template <typename T> |
| 279 | bool expect_array(const char* what, const T* expected, const T* result, size_t length) |
no outgoing calls
no test coverage detected