use of org.antlr.v4.runtime.misc.Interval in project antlr4 by antlr.
the class TestUnbufferedCharStream method testGetTextBeforeBufferStart.
@Test(expected = UnsupportedOperationException.class)
public void testGetTextBeforeBufferStart() {
CharStream input = createStream("xyz");
input.consume();
int m1 = input.mark();
assertEquals(1, input.index());
input.getText(new Interval(0, 1));
}
Aggregations