use of org.eclipse.xtext.util.TextRegion in project xtext-core by eclipse.
the class TokenRegionProviderTest method testBug486454.
@Test
public void testBug486454() throws Exception {
String model = "t";
ITextRegion tokenRegion = tokenRegionProvider.getTokenRegion(model, new TextRegion(1, 0));
assertEquals(0, tokenRegion.getOffset());
assertEquals(1, tokenRegion.getLength());
}
Aggregations