MCPcopy Create free account
hub / github.com/Gecode/gecode / run

Method run

test/ldsb.cpp:210–220  ·  view source on GitHub ↗

Perform actual tests

Source from the content-addressed store, hash-verified

208 c_d(c), a_d(a) {}
209 /// Perform actual tests
210 bool run(void) {
211 OneArray *s = new OneArray(T::n, T::l, T::u);
212 T::setup(*s, s->xs);
213 Search::Options o = Search::Options::def;
214 if (c_d != 0) o.c_d = c_d;
215 if (a_d != 0) o.a_d = a_d;
216 DFS<OneArray> e(s,o);
217 bool r = check(e, T::expectedSolutions());
218 delete s;
219 return r;
220 }
221 };
222
223#ifdef GECODE_HAS_SET_VARS

Callers

nothing calls this directly

Calls 1

checkFunction · 0.70

Tested by

no test coverage detected