Go to the source code of this file.
|
#define | SOPHUS_STRINGIFY(x) #x |
|
#define | SOPHUS_TEST(passed, condition, ...) |
|
#define | SOPHUS_TEST_EQUAL(passed, left, right, ...) |
|
#define | SOPHUS_TEST_NEQ(passed, left, right, ...) |
|
#define | SOPHUS_TEST_APPROX(passed, left, right, thr, ...) |
|
◆ SOPHUS_STRINGIFY
#define SOPHUS_STRINGIFY |
( |
|
x | ) |
#x |
◆ SOPHUS_TEST
#define SOPHUS_TEST |
( |
|
passed, |
|
|
|
condition, |
|
|
|
... |
|
) |
| |
Value:do { \
if (!(condition)) { \
msg); \
} \
} while (false)
void testFailed(bool &passed, char const *func, char const *file, int line, std::string const &msg)
std::string FormatString(char const *text, Args &&... args)
#define SOPHUS_STRINGIFY(x)
Definition at line 51 of file test_macros.hpp.
◆ SOPHUS_TEST_APPROX
#define SOPHUS_TEST_APPROX |
( |
|
passed, |
|
|
|
left, |
|
|
|
right, |
|
|
|
thr, |
|
|
|
... |
|
) |
| |
Value:do { \
if (!(nrm < (thr))) { \
msg); \
} \
} while (false)
void testFailed(bool &passed, char const *func, char const *file, int line, std::string const &msg)
std::string FormatString(char const *text, Args &&... args)
#define SOPHUS_STRINGIFY(x)
std::string pretty(T const &v)
auto metric(T const &p0, T const &p1) -> decltype(details::Metric< T >::impl(p0, p1))
Definition at line 94 of file test_macros.hpp.
◆ SOPHUS_TEST_EQUAL
#define SOPHUS_TEST_EQUAL |
( |
|
passed, |
|
|
|
left, |
|
|
|
right, |
|
|
|
... |
|
) |
| |
Value:do { \
if (left != right) { \
msg); \
} \
} while (false)
void testFailed(bool &passed, char const *func, char const *file, int line, std::string const &msg)
std::string FormatString(char const *text, Args &&... args)
#define SOPHUS_STRINGIFY(x)
std::string pretty(T const &v)
Definition at line 64 of file test_macros.hpp.
◆ SOPHUS_TEST_NEQ
#define SOPHUS_TEST_NEQ |
( |
|
passed, |
|
|
|
left, |
|
|
|
right, |
|
|
|
... |
|
) |
| |
Value:do { \
if (left == right) { \
msg); \
} \
} while (false)
void testFailed(bool &passed, char const *func, char const *file, int line, std::string const &msg)
std::string FormatString(char const *text, Args &&... args)
#define SOPHUS_STRINGIFY(x)
std::string pretty(T const &v)
Definition at line 79 of file test_macros.hpp.