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

Function test_rect_within

tests/test_rect.cpp:146–153  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144 }
145}
146void test_rect_within(Rect<int> r1, Rect<int> r2, bool expected)
147{
148 if (r1.within(r2) != expected)
149 {
150 LogError("Rect %s incorrectly %s rect %s", r2, expected ? "not within" : "within", r1);
151 exit(EXIT_FAILURE);
152 }
153}
154void test_rect_intersects(Rect<int> r1, Rect<int> r2, bool expected)
155{
156 if (r1.intersects(r2) != expected)

Callers 1

mainFunction · 0.85

Calls 1

withinMethod · 0.80

Tested by

no test coverage detected