Direct-BT v3.3.0-1-gc2d430c
Direct-BT - Direct Bluetooth Programming.
|
#include <catch2/catch_amalgamated.hpp>
#include <jau/float_math.hpp>
#include <jau/test/catch2_my_main.cpp>
Go to the source code of this file.
Macros | |
#define | COMPARE_NARRAYS(lhs, rhs, len) compareNativeArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, len) |
#define | COMPARE_NARRAYS_EPS(lhs, rhs, len, eps) compareNativeArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, len, eps) |
#define | COMPARE_SARRAYS(lhs, rhs) compareStdArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs) |
#define | COMPARE_SARRAYS_EPS(lhs, rhs, eps) compareStdArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, eps) |
#define | INFO_STR(msg) INTERNAL_CATCH_INFO( "INFO", static_cast<std::string>(msg) ) |
#define | INTERNAL_CATCH_TEST_M(msg, macroName, resultDisposition, ...) |
#define | INTERNAL_CHECK_THAT_M(msg, macroName, matcher, resultDisposition, arg) |
#define | REQUIRE_DIFF(a, b, d) INTERNAL_CATCH_TEST( "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b, 1, d)) |
#define | REQUIRE_DIFF_MSG(m, a, b, d) INTERNAL_CATCH_TEST_M( m, "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b, 1, d)) |
#define | REQUIRE_EPSI(a, b) INTERNAL_CATCH_TEST( "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b)) |
#define | REQUIRE_EPSI_MSG(m, a, b) INTERNAL_CATCH_TEST_M( m, "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b)) |
#define | REQUIRE_MSG(MSG, ...) INTERNAL_CATCH_TEST_M( MSG, "REQUIRE: ", Catch::ResultDisposition::Normal, __VA_ARGS__ ) |
#define | REQUIRE_THAT_MSG(MSG, arg, matcher) INTERNAL_CHECK_THAT_M( MSG, "REQUIRE_THAT", matcher, Catch::ResultDisposition::Normal, arg ) |
Functions | |
template<typename T > | |
void | compareNativeArrays (const std::string &test, unsigned line, const T lhs[], const T rhs[], const size_t len) |
template<typename T > | |
void | compareNativeArrays (const std::string &test, unsigned line, const T lhs[], const T rhs[], const size_t len, const T epsilon) |
template<typename T , size_t N> | |
void | compareStdArrays (const std::string &test, unsigned line, const std::array< T, N > &lhs, const std::array< T, N > &rhs) |
template<typename T , size_t N> | |
void | compareStdArrays (const std::string &test, unsigned line, const std::array< T, N > &lhs, const std::array< T, N > &rhs, const T epsilon) |
#define INTERNAL_CATCH_TEST_M | ( | msg, | |
macroName, | |||
resultDisposition, | |||
... | |||
) |
Definition at line 41 of file catch2_ext.hpp.
#define REQUIRE_MSG | ( | MSG, | |
... | |||
) | INTERNAL_CATCH_TEST_M( MSG, "REQUIRE: ", Catch::ResultDisposition::Normal, __VA_ARGS__ ) |
Definition at line 58 of file catch2_ext.hpp.
#define INTERNAL_CHECK_THAT_M | ( | msg, | |
macroName, | |||
matcher, | |||
resultDisposition, | |||
arg | |||
) |
Definition at line 60 of file catch2_ext.hpp.
#define REQUIRE_THAT_MSG | ( | MSG, | |
arg, | |||
matcher | |||
) | INTERNAL_CHECK_THAT_M( MSG, "REQUIRE_THAT", matcher, Catch::ResultDisposition::Normal, arg ) |
Definition at line 73 of file catch2_ext.hpp.
#define INFO_STR | ( | msg | ) | INTERNAL_CATCH_INFO( "INFO", static_cast<std::string>(msg) ) |
Definition at line 75 of file catch2_ext.hpp.
#define REQUIRE_EPSI | ( | a, | |
b | |||
) | INTERNAL_CATCH_TEST( "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b)) |
Definition at line 77 of file catch2_ext.hpp.
#define REQUIRE_EPSI_MSG | ( | m, | |
a, | |||
b | |||
) | INTERNAL_CATCH_TEST_M( m, "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b)) |
Definition at line 78 of file catch2_ext.hpp.
#define REQUIRE_DIFF | ( | a, | |
b, | |||
d | |||
) | INTERNAL_CATCH_TEST( "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b, 1, d)) |
Definition at line 80 of file catch2_ext.hpp.
#define REQUIRE_DIFF_MSG | ( | m, | |
a, | |||
b, | |||
d | |||
) | INTERNAL_CATCH_TEST_M( m, "REQUIRE: ", Catch::ResultDisposition::Normal, jau::equals(a, b, 1, d)) |
Definition at line 81 of file catch2_ext.hpp.
#define COMPARE_SARRAYS | ( | lhs, | |
rhs | |||
) | compareStdArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs) |
Definition at line 84 of file catch2_ext.hpp.
#define COMPARE_SARRAYS_EPS | ( | lhs, | |
rhs, | |||
eps | |||
) | compareStdArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, eps) |
Definition at line 85 of file catch2_ext.hpp.
#define COMPARE_NARRAYS | ( | lhs, | |
rhs, | |||
len | |||
) | compareNativeArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, len) |
Definition at line 101 of file catch2_ext.hpp.
#define COMPARE_NARRAYS_EPS | ( | lhs, | |
rhs, | |||
len, | |||
eps | |||
) | compareNativeArrays(Catch::getResultCapture().getCurrentTestName(), __LINE__, lhs, rhs, len, eps) |
Definition at line 102 of file catch2_ext.hpp.
void compareStdArrays | ( | const std::string & | test, |
unsigned | line, | ||
const std::array< T, N > & | lhs, | ||
const std::array< T, N > & | rhs | ||
) |
Definition at line 88 of file catch2_ext.hpp.
void compareStdArrays | ( | const std::string & | test, |
unsigned | line, | ||
const std::array< T, N > & | lhs, | ||
const std::array< T, N > & | rhs, | ||
const T | epsilon | ||
) |
Definition at line 94 of file catch2_ext.hpp.
void compareNativeArrays | ( | const std::string & | test, |
unsigned | line, | ||
const T | lhs[], | ||
const T | rhs[], | ||
const size_t | len | ||
) |
Definition at line 105 of file catch2_ext.hpp.
void compareNativeArrays | ( | const std::string & | test, |
unsigned | line, | ||
const T | lhs[], | ||
const T | rhs[], | ||
const size_t | len, | ||
const T | epsilon | ||
) |
Definition at line 112 of file catch2_ext.hpp.