MCPcopy Create free account
hub / github.com/OpenApoc/OpenApoc / test_rect_intersects

Function test_rect_intersects

tests/test_rect.cpp:154–162  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152 }
153}
154void test_rect_intersects(Rect<int> r1, Rect<int> r2, bool expected)
155{
156 if (r1.intersects(r2) != expected)
157 {
158 LogError("Rect %s incorrectly %s rect %s", r2,
159 expected ? "does not intersect" : "intersects", r1);
160 exit(EXIT_FAILURE);
161 }
162}
163int main(int argc, char **argv)
164{
165 if (config().parseOptions(argc, argv))

Callers 1

mainFunction · 0.85

Calls 1

intersectsMethod · 0.80

Tested by

no test coverage detected