Add int64_axis.

This commit is contained in:
Allison Vacanti
2020-12-21 20:31:12 -05:00
parent 48bd9c9dc4
commit 13dc404d56
10 changed files with 285 additions and 6 deletions

31
testing/test_asserts.cuh Normal file
View File

@@ -0,0 +1,31 @@
#pragma once
#include <fmt/format.h>
#define ASSERT(cond) \
do \
{ \
if (cond) \
{} \
else \
{ \
fmt::print("{}:{}: Assertion failed ({}).\n", __FILE__, __LINE__, #cond); \
exit(EXIT_FAILURE); \
} \
} while (false)
#define ASSERT_MSG(cond, msg) \
do \
{ \
if (cond) \
{} \
else \
{ \
fmt::print("{}:{}: Test assertion failed ({}) {}\n", \
__FILE__, \
__LINE__, \
#cond, \
msg); \
exit(EXIT_FAILURE); \
} \
} while (false)