38#include <boost/test/tools/floating_point_comparison.hpp>
39#include <boost/test/unit_test.hpp>
45 int nint = 1, nbndry = 1;
48 NekDouble buf[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
53 BOOST_CHECK_EQUAL(2u, Fint[0]);
57 BOOST_CHECK_EQUAL(2, Vint[0]);
61 BOOST_CHECK_EQUAL(4, testVector[0]);
62 BOOST_CHECK_EQUAL(5, testVector[1]);
63 BOOST_CHECK_EQUAL(6, testVector[2]);
64 BOOST_CHECK_EQUAL(7, testVector[3]);
67 BOOST_CHECK_EQUAL(9.9, testVector[0]);
68 BOOST_CHECK_EQUAL(9.9, offset[0]);
69 BOOST_CHECK_EQUAL(9.9, out[3]);
80 double lhs_buf[] = {1.0, 2.0, 3.0, 4.0};
81 double rhs_buf[] = {10.0, 11.0, 12.0, 13.0};
88 double expected_result_buf[] = {1.0 - 10.0, 2.0 - 11.0, 3.0 - 12.0,
92 BOOST_CHECK_EQUAL(expected_result, result);
97 double lhs_buf[] = {1.0, 2.0, 3.0, 4.0};
98 double rhs_buf[] = {10.0, 11.0, 12.0, 13.0};
105 double expected_result_buf[] = {1.0 + 10.0, 2.0 + 11.0, 3.0 + 12.0,
109 BOOST_CHECK_EQUAL(expected_result, result);
unsigned int GetDimension() const
Returns the number of dimensions for the point.
BOOST_AUTO_TEST_CASE(TestConstructorWithArrayAndUserSpecifiedSize)