37#include <boost/test/tools/floating_point_comparison.hpp>
38#include <boost/test/unit_test.hpp>
50 BOOST_CHECK_EQUAL(array_1.size(), const_array_1.size());
51 BOOST_CHECK_EQUAL(array_2.size(), 5);
56 BOOST_CHECK_EQUAL(array_1[2], -1.0);
57 BOOST_CHECK_EQUAL(array_2[2], -1.0);
59 BOOST_CHECK_EQUAL(const_array_1[2], 7.0);
60 BOOST_CHECK_EQUAL(const_array_2[2], 3.0);
72 BOOST_CHECK_EQUAL(array_wrapper_1.size(), array_1.size());
73 BOOST_CHECK_EQUAL(array_wrapper_1[0], 7.0);
75 array_wrapper_1[0] = -1.0;
77 BOOST_CHECK_EQUAL(array_1[0], -1.0);
84 BOOST_CHECK_EQUAL(array_copy_1.size(), array_1.size());
85 BOOST_CHECK_EQUAL(array_copy_1[1], 7.0);
87 array_copy_1[1] = 0.0;
89 BOOST_CHECK_EQUAL(array_1[1], 7.0);
95 BOOST_CHECK_EQUAL(
d.size(), 7);
96 BOOST_CHECK_EQUAL(
d.origin(), expectedAddress);
BOOST_AUTO_TEST_CASE(TestArrayConstructionFromConstantArray)
void CheckAddresses(Array< TwoD, double >::reference d, double *expectedAddress)
std::vector< double > d(NPUPPER *NPUPPER)