* better documentation, test against eigen slicing * remove a bunch of slices * clean up templates; static asserts on vector types * final purges of slice * fix templates in debug and ears test * fix slice mask bug * fix slice bug * fix most fpe exceptions * fix limit case * more robust push, pop
24 lines
552 B
C++
24 lines
552 B
C++
////////////////////////////////////////////////////////////////////////////////
|
|
// Keep this file empty, and implement unit tests in separate compilation units!
|
|
////////////////////////////////////////////////////////////////////////////////
|
|
|
|
#define CATCH_CONFIG_MAIN
|
|
#include <catch2/catch.hpp>
|
|
|
|
|
|
#ifndef NDEBUG
|
|
#ifdef __linux__
|
|
#include <fenv.h>
|
|
#endif
|
|
#endif
|
|
|
|
#ifndef NDEBUG
|
|
#ifdef __linux__
|
|
void beforeMain (void) __attribute__((constructor));
|
|
void beforeMain (void)
|
|
{
|
|
feenableexcept(FE_DIVBYZERO | FE_INVALID | FE_OVERFLOW);
|
|
}
|
|
#endif
|
|
#endif
|