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