38#include <boost/test/tools/floating_point_comparison.hpp>
39#include <boost/test/unit_test.hpp>
43namespace VariableSizedNekVectorUnitTests
47 int nint = 1, nbndry = 1;
50 NekDouble buf[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10};
55 BOOST_CHECK_EQUAL(2u, Fint[0]);
59 BOOST_CHECK_EQUAL(2, Vint[0]);
63 BOOST_CHECK_EQUAL(4, testVector[0]);
64 BOOST_CHECK_EQUAL(5, testVector[1]);
65 BOOST_CHECK_EQUAL(6, testVector[2]);
66 BOOST_CHECK_EQUAL(7, testVector[3]);
69 BOOST_CHECK_EQUAL(9.9, testVector[0]);
70 BOOST_CHECK_EQUAL(9.9, offset[0]);
71 BOOST_CHECK_EQUAL(9.9, out[3]);
82 double lhs_buf[] = {1.0, 2.0, 3.0, 4.0};
83 double rhs_buf[] = {10.0, 11.0, 12.0, 13.0};
90 double expected_result_buf[] = {1.0 - 10.0, 2.0 - 11.0, 3.0 - 12.0,
94 BOOST_CHECK_EQUAL(expected_result, result);
99 double lhs_buf[] = {1.0, 2.0, 3.0, 4.0};
100 double rhs_buf[] = {10.0, 11.0, 12.0, 13.0};
107 double expected_result_buf[] = {1.0 + 10.0, 2.0 + 11.0, 3.0 + 12.0,
111 BOOST_CHECK_EQUAL(expected_result, result);
unsigned int GetDimension() const
Returns the number of dimensions for the point.
BOOST_AUTO_TEST_CASE(TestConstructorWithArrayAndUserSpecifiedSize)
The above copyright notice and this permission notice shall be included.