@Test public void randomTest() { int upLimit = 100; for (int i = 0; i < 100; i++) { if (i % 20 == 19) upLimit <<= 1; Set<LineSegment> xLines = generateLine(upLimit / 5, upLimit, true); Set<LineSegment> yLines = generateLine(upLimit / 20, upLimit, false); List<LineSegment> testInput = new ArrayList<>(); testInput.addAll(xLines); testInput.addAll(yLines); List<Point> res = LineSegmentIntersection.solve(testInput); assertEquals(expect(xLines, yLines), new HashSet(res)); } }
public static List<Point> solve(List<LineSegment> input) { return null; }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; } }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  static List<Point> solve(List<LineSegment> input); }
LineSegmentIntersection { public static List<Point> solve(List<LineSegment> input) { return null; }  static List<Point> solve(List<LineSegment> input);  }