22 #ifndef EXIT_HANDLER_INTEL_X64_UNITTESTS_H 23 #define EXIT_HANDLER_INTEL_X64_UNITTESTS_H 32 {
if (!cond)
throw std::runtime_error(
"unittest failed ["_s +
std::to_string(line) +
"]: "_s + func); }
36 {
if (cond)
throw std::runtime_error(
"unittest failed ["_s +
std::to_string(line) +
"]: "_s + func); }
38 #define expect_true(a) expect_true_with_args(a, __FUNC__, __LINE__); 39 #define expect_false(a) expect_false_with_args(a, __FUNC__, __LINE__); void expect_false_with_args(bool cond, const char *func, int line)
std::string to_string(const T val, const int base)
void expect_true_with_args(bool cond, const char *func, int line)