ChimeraTK-DeviceAccess 03.26.00
Loading...
Searching...
No Matches
testNumericConverter.cpp File Reference
#include <cmath>
#include <boost/test/unit_test.hpp>
#include <NumericConverter.h>
+ Include dependency graph for testNumericConverter.cpp:

Go to the source code of this file.

Macros

#define BOOST_TEST_DYN_LINK
 
#define BOOST_TEST_MODULE   TestNumericConverter
 

Typedefs

using IntTypes = std::tuple< uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, bool, ChimeraTK::Boolean >
 
using FloatTypes = std::tuple< float, double >
 

Functions

template<typename Tuple , typename F >
void forEachType (F &&f)
 
 BOOST_AUTO_TEST_CASE (TestNumericConverter)
 

Macro Definition Documentation

◆ BOOST_TEST_DYN_LINK

#define BOOST_TEST_DYN_LINK

Definition at line 5 of file testNumericConverter.cpp.

◆ BOOST_TEST_MODULE

#define BOOST_TEST_MODULE   TestNumericConverter

Definition at line 6 of file testNumericConverter.cpp.

Typedef Documentation

◆ FloatTypes

using FloatTypes = std::tuple<float, double>

Definition at line 19 of file testNumericConverter.cpp.

◆ IntTypes

using IntTypes = std::tuple<uint8_t, int8_t, uint16_t, int16_t, uint32_t, int32_t, uint64_t, int64_t, bool, ChimeraTK::Boolean>

Definition at line 17 of file testNumericConverter.cpp.

Function Documentation

◆ BOOST_AUTO_TEST_CASE()

BOOST_AUTO_TEST_CASE ( TestNumericConverter  )

Definition at line 34 of file testNumericConverter.cpp.

◆ forEachType()

template<typename Tuple , typename F >
void forEachType ( F &&  f)

Definition at line 25 of file testNumericConverter.cpp.