void () { List<Revision> rr = createRevisions("abc\ndef\nghi", "def\nghi"); SelectionCalculator c = new SelectionCalculator(gw, rr, 0, 1); Block b0 = c.getSelectionFor(rr.get(0), new NullProgress()); Block b1 = c.getSelectionFor(rr.get(1), new NullProgress()); assertBlock(0, 2, "def\nghi", b0); assertBlock(1, 3, "def\nghi", b1); }