| 152 | } |
| 153 | } |
| 154 | void 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 | } |
| 163 | int main(int argc, char **argv) |
| 164 | { |
| 165 | if (config().parseOptions(argc, argv)) |