10 #define BOOST_TEST_MODULE cmdline_interface
11 #include <boost/test/included/unit_test.hpp>
21 int data1[] = {11, 37, 45, 2, 18, 37, 7, 39, 66, 33};
22 size_t data2[] = {111, 137, 245, 12, 118, 237, 199, 278, 458};
35 BOOST_CHECK_EQUAL_COLLECTIONS(info1.
firstnode,
54 std::vector<InterleaveInfo*> infos;
56 infos.push_back(&info2);
57 infos.push_back(&info3);
60 for (
size_t i = 0;
i < infos.size();
i++) {
61 BOOST_CHECK_EQUAL(info1.
nwarp, infos[
i]->nwarp);
62 BOOST_CHECK_EQUAL(info1.
nstride, infos[
i]->nstride);
66 infos[
i]->stridedispl,
67 infos[
i]->stridedispl + nwarp + 1);
69 BOOST_CHECK_EQUAL_COLLECTIONS(info1.
stride,
74 BOOST_CHECK_EQUAL_COLLECTIONS(info1.
cellsize,
77 infos[
i]->cellsize + nwarp);
79 BOOST_CHECK_EQUAL_COLLECTIONS(info1.
child_race,
82 infos[
i]->child_race + nwarp);