preCICE v3.2.0
Loading...
Searching...
No Matches
MathTest.cpp
Go to the documentation of this file.
2#include "logging/Logger.hpp"
3#include "math/math.hpp"
5#include "testing/Testing.hpp"
6
7using namespace precice;
8
10
12BOOST_AUTO_TEST_CASE(IntegerExponent)
13{
15 BOOST_TEST(math::pow_int<4>(4.2) == std::pow(4.2, 4));
16 BOOST_TEST(math::pow_int<3>(7.2) == std::pow(7.2, 3));
17}
BOOST_AUTO_TEST_CASE(testIQNIMVJPPWithSubsteps)
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
#define PRECICE_TEST()
Definition Testing.hpp:39
#define PRECICE_TEST_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
Definition Testing.hpp:29
constexpr T pow_int(const T x)
Computes the power of a given number by an integral exponent given at compile time,...
Definition math.hpp:22
Main namespace of the precice library.
T pow(T... args)