10 #define BOOST_TEST_MODULE AbortList Tests
12 #include <boost/test/included/unit_test.hpp>
15 #include <boost/test/data/test_case.hpp>
18 #include <boost/test/output_test_stream.hpp>
24 namespace tt = boost::test_tools;
47 template <
typename detector_t,
typename particle_t>
48 bool operator()(
const detector_t &,
const particle_t &
object)
const {
60 template <
typename detector_t,
typename particle_t>
62 const particle_t &
object)
const {
72 template <
typename detector_t,
typename particle_t>
74 const particle_t &
object)
const {
75 return object.feature == environmet.pickFeature;
98 BOOST_TEST(selector1(en1, o1));
100 BOOST_TEST(!selector2(en1, o1));
104 auto &sl11 = selectorList11.template get<FeatureSelector>();
108 auto &sl12 = selectorList12.template get<FeatureSelector>();
112 BOOST_TEST(selectorList11(en1, o1));
114 BOOST_TEST(!selectorList12(en1, o1));
124 BOOST_TEST(o1List(en1, o1));
128 auto &s2 = o2List.template get<FeatureSelector>();
130 so = o2List.template get<NameSelector>();
134 BOOST_TEST(!o2List(en1, o1));
138 BOOST_TEST(eselector1(en1, o1));