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