kfr

Fast, modern C++ DSP framework, FFT, Sample Rate Conversion, FIR/IIR/Biquad Filters (SSE, AVX, AVX-512, ARM NEON)
Log | Files | Refs | README

commit ace990928e41e6a396ecb2208e26d595f339f988
parent 21885e8f41c3116b2cbeba4a416ac50b69e14ddd
Author: d.levin256@gmail.com <d.levin256@gmail.com>
Date:   Tue, 26 Jul 2016 13:36:20 +0300

Move assert_is_same to Testo

Diffstat:
Mtests/complex_test.cpp | 6------
Mtests/testo/testo.hpp | 11+++++++++++
2 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/tests/complex_test.cpp b/tests/complex_test.cpp @@ -16,12 +16,6 @@ using namespace kfr; -template <typename T1, typename T2> -void assert_is_same() -{ - static_assert(std::is_same<T1, T2>::value, ""); -} - TEST(complex_vector) { const vec<c32, 1> c32x1{ c32{ 0, 1 } }; diff --git a/tests/testo/testo.hpp b/tests/testo/testo.hpp @@ -525,6 +525,17 @@ static int run_all(const std::string& name = std::string(), bool show_successful return static_cast<int>(failed.size()); } +template <typename T1, typename T2> +void assert_is_same() +{ + static_assert(std::is_same<T1, T2>::value, ""); +} +template <typename T1, typename T2> +void assert_is_same_decay() +{ + static_assert(std::is_same<cometa::decay<T1>, cometa::decay<T2>>::value, ""); +} + #define TESTO_CHECK(...) \ { \ ::testo::active_test()->check(::testo::make_comparison() <= __VA_ARGS__, #__VA_ARGS__); \