7#define BOOST_TEST_DYN_LINK
8#include <boost/test/unit_test.hpp>
11#include "data_type/aggregate.hpp"
13BOOST_AUTO_TEST_SUITE( aggregate_test )
15BOOST_AUTO_TEST_CASE( aggregate_at_c_get_test )
19 openfpm::at_c<0>(data) = 1.0;
21 openfpm::at_c<1>(data)[0] = 1.0;
22 openfpm::at_c<1>(data)[1] = 2.0;
23 openfpm::at_c<1>(data)[2] = 3.0;
25 BOOST_REQUIRE_EQUAL(openfpm::get<0>(data),1.0);
27 BOOST_REQUIRE_EQUAL(openfpm::get<1>(data)[0],1.0);
28 BOOST_REQUIRE_EQUAL(openfpm::get<1>(data)[1],2.0);
29 BOOST_REQUIRE_EQUAL(openfpm::get<1>(data)[2],3.0);
32template<
unsigned int integer>
41template<
typename arg_f1,
typename arg_f2,
unsigned int s>
47BOOST_AUTO_TEST_CASE( meta_function_check )
52BOOST_AUTO_TEST_SUITE_END()
aggregate of properties, from a list of object if create a struct that follow the OPENFPM native stru...