38#include <boost/test/tools/floating_point_comparison.hpp>
39#include <boost/test/unit_test.hpp>
46 const double d2 = 2.0;
51 BOOST_CHECK_EQUAL(&d1,
58 BOOST_CHECK_EQUAL(&d2,
65 BOOST_CHECK_EQUAL(&d2,
73 double *d1 =
new double(1.0);
74 const double *d2 =
new double(2.0);
78 BOOST_CHECK_EQUAL(*d1,
86 static_cast<double *
>(
nullptr)));
88 BOOST_CHECK_EQUAL(*d2,
101 static_cast<const double *
>(
nullptr)));
103#if defined(NEKTAR_DEBUG) || defined(NEKTAR_FULLDEBUG)
105 static_cast<double *
>(
nullptr)),
108 static_cast<const double *
>(
nullptr)),
111 static_cast<double *
>(
nullptr)),
114 static_cast<const double *
>(
nullptr)),
121 double *d1 =
new double(1.0);
122 const double *d2 =
new double(2.0);
124 std::shared_ptr<double> sd1(d1);
125 std::shared_ptr<const double> sd2(d2);
146 std::shared_ptr<double>()));
173 ReferencesObject(std::shared_ptr<const double>()));
175#if defined(NEKTAR_DEBUG) || defined(NEKTAR_FULLDEBUG)
178 std::shared_ptr<double>()),
182 std::shared_ptr<const double>()),
186 std::shared_ptr<double>()),
190 std::shared_ptr<const double>()),
BOOST_AUTO_TEST_CASE(TestValueTypes)
void RedirectCerrIfNeeded()