void () { TextRange range = new TextRange(1, 2); assertEquals(new TextRange(2, 3), range.shiftRight(1)); assertEquals(new TextRange(0, 1), range.shiftRight(-1)); assertSame(range, range.shiftRight(0)); }