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

Function test2

test/test_vertical_decomposition.cpp:36–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34}
35
36bool test2(){
37 vector<vector<int> > rects = {
38 {-1, 0, 0, 1, 1, 0, 0, -1},
39 {0, 0, 1, 1, 2, 0, 1, -1}
40 };
41 return fabs(solve(rects) - 1.1428571429) < 1e-6;
42}
43
44int main(){
45 assert(test1());

Callers 1

mainFunction · 0.70

Calls 1

solveFunction · 0.85

Tested by

no test coverage detected