MCPcopy Create free account
hub / github.com/cp-algorithms/cp-algorithms / test

Function test

test/test_linear_diophantine.cpp:20–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

18}
19
20void test(int a, int b, int c, int minx, int maxx, int miny, int maxy) {
21 int expected = brute_force(a, b, c, minx, maxx, miny, maxy);
22 assert(find_all_solutions(a, b, c, minx, maxx, miny, maxy) == expected);
23}
24
25int main() {
26 test(-10, -8, -80, -100, 100, -90, 90);

Callers 1

mainFunction · 0.85

Calls 1

brute_forceFunction · 0.70

Tested by

no test coverage detected