| 18 | } |
| 19 | |
| 20 | void test(int a, int b, int c, int minx, int maxx, int miny, int maxy) { |
| 21 | int expected = brute_force(a, b, c, minx, maxx, miny, maxy); |
| 22 | assert(find_all_solutions(a, b, c, minx, maxx, miny, maxy) == expected); |
| 23 | } |
| 24 | |
| 25 | int main() { |
| 26 | test(-10, -8, -80, -100, 100, -90, 90); |