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

Function test2

test/test_minkowski.cpp:40–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40bool test2(){
41 vector<pt> p = {
42 pt{1, 1},
43 pt{0, 1},
44 pt{0, 0},
45 pt{1, 0}
46 };
47 vector<pt> q = {
48 pt{2, 2},
49 pt{0, 2},
50 pt{0, 0},
51 pt{2, 0}
52 };
53 return equal_polygons(
54 minkowski(p, q),
55 vector<pt>{
56 pt{0, 0},
57 pt{3, 0},
58 pt{3, 3},
59 pt{0, 3}
60 });
61}
62
63int main(){
64 assert(test1());

Callers 1

mainFunction · 0.70

Calls 1

equal_polygonsFunction · 0.85

Tested by

no test coverage detected