MCPcopy Create free account
hub / github.com/ERGO-Code/HiGHS / assertDoubleValuesEqual

Function assertDoubleValuesEqual

check/TestCAPI.c:215–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void assertDoubleValuesEqual(const char* name, const double is,
216 const double should_be) {
217 const double dl = fabs(is - should_be);
218 if (dl > double_equal_tolerance) {
219 printf("Value %s = %g differs from %g by %g but should be equal\n", name,
220 is, should_be, dl);
221 assert(1 == 0);
222 }
223}
224
225void assertIntValuesEqual(const char* name, const HighsInt is,
226 const HighsInt should_be) {

Callers 10

minimalApiQpFunction · 0.85
fullApiLpFunction · 0.85
fullApiQpFunction · 0.85
testPassHessianFunction · 0.85
testRangingFunction · 0.85
testCallbackFunction · 0.85
testMultiObjectiveFunction · 0.85
testDualRayTwiceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected