9 #include <boost/test/data/test_case.hpp>
10 #include <boost/test/unit_test.hpp>
17 namespace tt = boost::test_tools;
25 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
26 bdata::random(-10., 10.) ^ bdata::random(0., 4.) ^
27 bdata::random(11., 15.) ^ bdata::random(10., 15.) ^
33 innerConfig.
rMin = 0.;
34 innerConfig.
rMax = 10.;
35 innerConfig.
zMin = -10.;
36 innerConfig.
zMax = 10.;
40 outerConfig1.
rMin = inner;
41 outerConfig1.
rMax = inner + 5.;
47 outerConfig2.
rMin = inner;
48 outerConfig2.
rMax = inner + 5.;
49 outerConfig2.
zMin = right;
50 outerConfig2.
zMax = right + 5.;
54 outerConfig3.
rMin = outer;
55 outerConfig3.
rMax = outer + 5.;
56 outerConfig3.
zMin = central - 5.;
57 outerConfig3.
zMax = central + 5.;
61 outerConfig4.
rMin = inner;
62 outerConfig4.
rMax = inner + 5.;
63 outerConfig4.
zMin = central - 5.;
64 outerConfig4.
zMax = central + 5.;
68 outerConfig5.
rMin = outer;
69 outerConfig5.
rMax = outer + 5.;
75 outerConfig6.
rMin = outer;
76 outerConfig6.
rMax = outer + 5.;
77 outerConfig6.
zMin = -10.;
78 outerConfig6.
zMax = 10.;
81 BOOST_CHECK(outerConfig1.
wraps(innerConfig));
83 BOOST_CHECK(outerConfig2.
wraps(innerConfig));
85 BOOST_CHECK(outerConfig3.
wraps(innerConfig));
87 BOOST_CHECK(!outerConfig4.
wraps(innerConfig));
89 BOOST_CHECK(!innerConfig.
wraps(outerConfig3));
91 BOOST_CHECK(outerConfig5.
wraps(innerConfig));
93 BOOST_CHECK(!innerConfig.
wraps(outerConfig5));
95 BOOST_CHECK(outerConfig6.
wraps(innerConfig));
101 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
102 bdata::random(-10., 10.) ^ bdata::random(0., 4.) ^
103 bdata::random(10., 15.) ^ bdata::random(10., 15.) ^
109 innerConfig.
rMin = 0.;
110 innerConfig.
rMax = 10.;
111 innerConfig.
zMin = -10.;
112 innerConfig.
zMax = 10.;
116 outerConfig1.
rMin = inner;
117 outerConfig1.
rMax = inner + 5.;
123 outerConfig2.
rMin = inner;
124 outerConfig2.
rMax = inner + 5.;
125 outerConfig2.
zMin = right;
126 outerConfig2.
zMax = right + 5.;
130 outerConfig3.
rMin = outer;
131 outerConfig3.
rMax = outer + 5.;
132 outerConfig3.
zMin = central - 5.;
133 outerConfig3.
zMax = central + 5.;
137 outerConfig4.
rMin = inner;
138 outerConfig4.
rMax = inner + 5.;
139 outerConfig4.
zMin = central - 5.;
140 outerConfig4.
zMax = central + 5.;
144 outerConfig5.
rMin = outer;
145 outerConfig5.
rMax = outer + 5.;
151 outerConfig6.
rMin = outer;
152 outerConfig6.
rMax = outer + 5.;
153 outerConfig6.
zMin = -10.;
154 outerConfig6.
zMax = 10.;
158 innerConfig1.
rMin = outer;
159 innerConfig1.
rMax = outer + 5.;
160 innerConfig1.
zMin = inner - 5.;
161 innerConfig1.
zMax = inner + 5.;
164 BOOST_CHECK(!outerConfig1.
contains(innerConfig));
166 BOOST_CHECK(!outerConfig2.
contains(innerConfig));
168 BOOST_CHECK(!outerConfig4.
contains(innerConfig));
170 BOOST_CHECK(!innerConfig.
contains(outerConfig3));
172 BOOST_CHECK(outerConfig5.
contains(innerConfig));
174 BOOST_CHECK(!innerConfig.
contains(outerConfig5));
176 BOOST_CHECK(!outerConfig6.
contains(innerConfig));
179 BOOST_CHECK(innerConfig.
containsInZ(innerConfig1));
180 BOOST_CHECK(!innerConfig.
containsInR(innerConfig1));
181 BOOST_CHECK(innerConfig1.
containsInR(innerConfig));
182 BOOST_CHECK(!innerConfig1.
containsInZ(innerConfig));
188 bdata::random(0., 4.) ^ bdata::random(11., 15.) ^
190 inner, outer,
index) {
203 Config1.
rMax = inner;
209 Config2.
rMin = outer;
210 Config2.
rMax = outer + 5.;
216 Config3.
rMin = inner + 5;
217 Config3.
rMax = outer + 5.;
223 Config4.
rMin = inner;
224 Config4.
rMax = inner + 5.;
231 Config5.
rMax = inner + 5.;
250 bdata::random(-11., -15.) ^ bdata::random(11., 15.) ^
251 bdata::random(0., 4.) ^ bdata::xrange(100),
273 Config2.
zMin = right;
274 Config2.
zMax = right + 5.;
287 Config4.
zMin = inner - 5.;
288 Config4.
zMax = inner + 5.;
295 Config5.
zMax = right;
308 Config7.
zMin = right - 10.;
309 Config7.
zMax = right;