| 26 | } |
| 27 | |
| 28 | void failIf(std::int64_t a, std::int64_t b, const std::string& message) |
| 29 | { |
| 30 | if (a == b) |
| 31 | { |
| 32 | throw std::runtime_error(message.empty() ? "Test failed " + std::to_string(a) + " == " + std::to_string(b) : message); |
| 33 | } |
| 34 | } |
| 35 | |
| 36 | void failIfNot(std::int64_t a, std::int64_t b, const std::string& message) |
| 37 | { |