9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
16 namespace tt = boost::test_tools;
24 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
25 bdata::random(-10., 10.) ^ bdata::random(0., 4.) ^
26 bdata::random(11., 15.) ^ bdata::random(10., 15.) ^
32 innerConfig.
rMin = 0.;
33 innerConfig.
rMax = 10.;
34 innerConfig.
zMin = -10.;
35 innerConfig.
zMax = 10.;
39 outerConfig1.
rMin = inner;
40 outerConfig1.
rMax = inner + 5.;
46 outerConfig2.
rMin = inner;
47 outerConfig2.
rMax = inner + 5.;
53 outerConfig3.
rMin = outer;
54 outerConfig3.
rMax = outer + 5.;
55 outerConfig3.
zMin = central - 5.;
56 outerConfig3.
zMax = central + 5.;
60 outerConfig4.
rMin = inner;
61 outerConfig4.
rMax = inner + 5.;
62 outerConfig4.
zMin = central - 5.;
63 outerConfig4.
zMax = central + 5.;
67 outerConfig5.
rMin = outer;
68 outerConfig5.
rMax = outer + 5.;
74 outerConfig6.
rMin = outer;
75 outerConfig6.
rMax = outer + 5.;
76 outerConfig6.
zMin = -10.;
77 outerConfig6.
zMax = 10.;
80 BOOST_CHECK(outerConfig1.
wraps(innerConfig));
82 BOOST_CHECK(outerConfig2.
wraps(innerConfig));
84 BOOST_CHECK(outerConfig3.
wraps(innerConfig));
86 BOOST_CHECK(!outerConfig4.
wraps(innerConfig));
88 BOOST_CHECK(!innerConfig.
wraps(outerConfig3));
90 BOOST_CHECK(outerConfig5.
wraps(innerConfig));
92 BOOST_CHECK(!innerConfig.
wraps(outerConfig5));
94 BOOST_CHECK(outerConfig6.
wraps(innerConfig));
100 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
101 bdata::random(-10., 10.) ^ bdata::random(0., 4.) ^
102 bdata::random(10., 15.) ^ bdata::random(10., 15.) ^
108 innerConfig.
rMin = 0.;
109 innerConfig.
rMax = 10.;
110 innerConfig.
zMin = -10.;
111 innerConfig.
zMax = 10.;
115 outerConfig1.
rMin = inner;
116 outerConfig1.
rMax = inner + 5.;
122 outerConfig2.
rMin = inner;
123 outerConfig2.
rMax = inner + 5.;
129 outerConfig3.
rMin = outer;
130 outerConfig3.
rMax = outer + 5.;
131 outerConfig3.
zMin = central - 5.;
132 outerConfig3.
zMax = central + 5.;
136 outerConfig4.
rMin = inner;
137 outerConfig4.
rMax = inner + 5.;
138 outerConfig4.
zMin = central - 5.;
139 outerConfig4.
zMax = central + 5.;
143 outerConfig5.
rMin = outer;
144 outerConfig5.
rMax = outer + 5.;
150 outerConfig6.
rMin = outer;
151 outerConfig6.
rMax = outer + 5.;
152 outerConfig6.
zMin = -10.;
153 outerConfig6.
zMax = 10.;
157 innerConfig1.
rMin = outer;
158 innerConfig1.
rMax = outer + 5.;
159 innerConfig1.
zMin = inner - 5.;
160 innerConfig1.
zMax = inner + 5.;
163 BOOST_CHECK(!outerConfig1.
contains(innerConfig));
165 BOOST_CHECK(!outerConfig2.
contains(innerConfig));
167 BOOST_CHECK(!outerConfig4.
contains(innerConfig));
169 BOOST_CHECK(!innerConfig.
contains(outerConfig3));
171 BOOST_CHECK(outerConfig5.
contains(innerConfig));
173 BOOST_CHECK(!innerConfig.
contains(outerConfig5));
175 BOOST_CHECK(!outerConfig6.
contains(innerConfig));
178 BOOST_CHECK(innerConfig.
containsInZ(innerConfig1));
179 BOOST_CHECK(!innerConfig.
containsInR(innerConfig1));
180 BOOST_CHECK(innerConfig1.
containsInR(innerConfig));
181 BOOST_CHECK(!innerConfig1.
containsInZ(innerConfig));
187 bdata::random(0., 4.) ^ bdata::random(11., 15.) ^
189 inner, outer, index) {
202 Config1.
rMax = inner;
208 Config2.
rMin = outer;
209 Config2.
rMax = outer + 5.;
215 Config3.
rMin = inner + 5;
216 Config3.
rMax = outer + 5.;
222 Config4.
rMin = inner;
223 Config4.
rMax = inner + 5.;
230 Config5.
rMax = inner + 5.;
249 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
250 bdata::random(0., 4.) ^ bdata::xrange(100),
286 Config4.
zMin = inner - 5.;
287 Config4.
zMax = inner + 5.;