preCICE
v3.1.2
Loading...
Searching...
No Matches
src
math
tests
MathTest.cpp
Go to the documentation of this file.
1
#include "
logging/LogMacros.hpp
"
2
#include "
logging/Logger.hpp
"
3
#include "
math/math.hpp
"
4
#include "
testing/TestContext.hpp
"
5
#include "
testing/Testing.hpp
"
6
7
using namespace
precice
;
8
9
BOOST_AUTO_TEST_SUITE
(MathTests)
10
11
BOOST_AUTO_TEST_CASE
(IntegerExponent)
12
{
13
PRECICE_TEST
(1_rank);
14
BOOST_TEST(math::pow_int<4>(4.2) ==
std::pow
(4.2, 4));
15
BOOST_TEST(math::pow_int<3>(7.2) ==
std::pow
(7.2, 3));
16
}
17
BOOST_AUTO_TEST_SUITE_END
()
// Math
LogMacros.hpp
Logger.hpp
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(IntegerExponent)
Definition
MathTest.cpp:11
BOOST_AUTO_TEST_SUITE
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END
BOOST_AUTO_TEST_SUITE_END()
TestContext.hpp
Testing.hpp
PRECICE_TEST
#define PRECICE_TEST(...)
Definition
Testing.hpp:27
math.hpp
precice
Main namespace of the precice library.
Definition
Acceleration.cpp:5
std::pow
T pow(T... args)