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

Function test_multiedges

test/test_planar_implicit.cpp:71–78  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69}
70
71void test_multiedges() {
72 std::vector<Line> s = {
73 Line(Point(0, 0), Point(2, 2)),
74 Line(Point(1, 1), Point(3, 3))
75 };
76 auto [pts, adj] = build_graph(s);
77 assert(adj[0].size() == 1u && adj[1].size() == 2u && adj[2].size() == 2u && adj[3].size() == 1u);
78}
79
80int main() {
81 test_square();

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected