9 #include <boost/test/unit_test.hpp>
32 BOOST_CHECK_EQUAL(hsm, hsmCopy);
36 BOOST_CHECK_EQUAL(hsm, hsmCopyMoved);
40 BOOST_CHECK_EQUAL(hsm, hsmAssigned);
44 BOOST_CHECK_EQUAL(hsm, hsmAssignedMoved);
59 BOOST_CHECK_EQUAL(matBin, matHalf);
60 BOOST_CHECK_NE(matBin, mat);
82 BOOST_CHECK_EQUAL(mat, mat2d);
83 BOOST_CHECK_EQUAL(mat, mat3d);
84 BOOST_CHECK_EQUAL(mat, matbin);
94 BOOST_CHECK_EQUAL(hsmfwd.
factor(fDir, full), 1.);
95 BOOST_CHECK_EQUAL(hsmfwd.
factor(fDir, pre), 0.);
96 BOOST_CHECK_EQUAL(hsmfwd.
factor(fDir, post), 1.);
98 BOOST_CHECK_EQUAL(hsmfwd.
factor(bDir, full), 1.);
99 BOOST_CHECK_EQUAL(hsmfwd.
factor(bDir, pre), 1.);
100 BOOST_CHECK_EQUAL(hsmfwd.
factor(bDir, post), 0.);
111 BOOST_CHECK_EQUAL(mat, matFwdFull);
112 BOOST_CHECK_EQUAL(mat, matBwdFull);
114 BOOST_CHECK_EQUAL(mat, matFwdPost);
115 BOOST_CHECK_EQUAL(vacuum, matBwdPost);
117 BOOST_CHECK_EQUAL(vacuum, matFwdPre);
118 BOOST_CHECK_EQUAL(mat, matBwdPre);
121 BOOST_CHECK_EQUAL(hsmhalf.
factor(fDir, full), 1.);
125 BOOST_CHECK_EQUAL(hsmhalf.
factor(bDir, full), 1.);
138 BOOST_CHECK_EQUAL(mat, matFwdFull);
139 BOOST_CHECK_EQUAL(mat, matBwdFull);
141 BOOST_CHECK_EQUAL(matHalf, matFwdPost);
142 BOOST_CHECK_EQUAL(matHalf, matBwdPost);
144 BOOST_CHECK_EQUAL(matHalf, matFwdPre);
145 BOOST_CHECK_EQUAL(matHalf, matBwdPre);
148 BOOST_CHECK_EQUAL(hsmbwd.
factor(fDir, full), 1.);
149 BOOST_CHECK_EQUAL(hsmbwd.
factor(fDir, pre), 1.);
150 BOOST_CHECK_EQUAL(hsmbwd.
factor(fDir, post), 0.);
152 BOOST_CHECK_EQUAL(hsmbwd.
factor(bDir, full), 1.);
153 BOOST_CHECK_EQUAL(hsmbwd.
factor(bDir, pre), 0.);
154 BOOST_CHECK_EQUAL(hsmbwd.
factor(bDir, post), 1.);
165 BOOST_CHECK_EQUAL(mat, matFwdFull);
166 BOOST_CHECK_EQUAL(mat, matBwdFull);
168 BOOST_CHECK_EQUAL(vacuum, matFwdPost);
169 BOOST_CHECK_EQUAL(mat, matBwdPost);
171 BOOST_CHECK_EQUAL(mat, matFwdPre);
172 BOOST_CHECK_EQUAL(vacuum, matBwdPre);