PLaSK library

Loading...
Searching...
No Matches
Namespaces | Macros | Functions
toeplitz_test.cpp File Reference
`#include <boost/test/unit_test.hpp>`
`#include "../fourier/toeplitz.hpp"`
Include dependency graph for toeplitz_test.cpp:

Go to the source code of this file.

## Namespaces
namespace | boost
namespace | boost::unit_test
namespace | boost::unit_test::ut_detail

## Macros
#define | BOOST_TEST_DYN_LINK
#define | BOOST_TEST_MODULE "Toeplitz test"
#define | CHECK_CLOSE_COLLECTION(aa, bb, tolerance)

## Functions
std::string | boost::unit_test::ut_detail::normalize_test_case_name (const_string name)
| BOOST_AUTO_TEST_CASE (simple)

## Macro Definition Documentation

## ◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 16 of file toeplitz_test.cpp.

## ◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE "Toeplitz test"

Definition at line 17 of file toeplitz_test.cpp.

## ◆ CHECK_CLOSE_COLLECTION

#define CHECK_CLOSE_COLLECTION | ( |  | aa,
|  |  | bb,
|  |  | tolerance
| ) |  |

Value:
{ \
using std::distance; \
using std::begin; \
using std::end; \
auto a = begin(aa), ae = end(aa); \
auto b = begin(bb); \
BOOST_REQUIRE_EQUAL(distance(a, ae), distance(b, end(bb))); \
double total_error = 0.;\
for(; a != ae; ++a, ++b) total_error += abs2(*a - *b); \
BOOST_CHECK_SMALL(total_error, double(distance(begin(aa), ae)) * tolerance); \
}

Definition at line 28 of file toeplitz_test.cpp.

## Function Documentation

## ◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE | ( | simple |  | ) |

Definition at line 46 of file toeplitz_test.cpp.