use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Model in project xtext-core by eclipse.
the class Bug282355Test method testParse_Yc_01.
@Test
public void testParse_Yc_01() throws Exception {
Resource resource = getResourceFromString("Abc Efg Yc");
assertTrue(resource.getErrors().isEmpty());
Model model = (Model) resource.getContents().get(0);
assertEquals(2, model.getEnums().size());
assertEquals(0, model.getAbs().size());
assertEquals(0, model.getXbs().size());
assertEquals(0, model.getAs().size());
assertEquals(0, model.getYs().size());
assertEquals(1, model.getYcs().size());
}
use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Model in project xtext-core by eclipse.
the class Bug282355Test method testParse_A.
@Test
public void testParse_A() throws Exception {
Resource resource = getResourceFromString("A");
assertTrue(resource.getErrors().isEmpty());
Model model = (Model) resource.getContents().get(0);
assertEquals(0, model.getEnums().size());
assertEquals(0, model.getAbs().size());
assertEquals(0, model.getXbs().size());
assertEquals(1, model.getAs().size());
assertEquals(0, model.getYs().size());
assertEquals(0, model.getYcs().size());
}
use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Model in project xtext-core by eclipse.
the class Bug282355Test method testParse_Yc_02.
@Test
public void testParse_Yc_02() throws Exception {
Resource resource = getResourceFromString("YcYc");
assertTrue(resource.getErrors().isEmpty());
Model model = (Model) resource.getContents().get(0);
assertEquals(0, model.getEnums().size());
assertEquals(0, model.getAbs().size());
assertEquals(0, model.getXbs().size());
assertEquals(0, model.getAs().size());
assertEquals(0, model.getYs().size());
assertEquals(2, model.getYcs().size());
}
use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Model in project xtext-core by eclipse.
the class Bug282355Test method testParse_YcAA.
@Test
public void testParse_YcAA() throws Exception {
Resource resource = getResourceFromString("YcAA");
assertTrue(resource.getErrors().isEmpty());
Model model = (Model) resource.getContents().get(0);
assertEquals(0, model.getEnums().size());
assertEquals(0, model.getAbs().size());
assertEquals(0, model.getXbs().size());
assertEquals(2, model.getAs().size());
assertEquals(0, model.getYs().size());
assertEquals(1, model.getYcs().size());
}
use of org.eclipse.xtext.lexer.backtrackingTestLanguage.Model in project xtext-core by eclipse.
the class Bug282355Test method testParse_YA.
@Test
public void testParse_YA() throws Exception {
Resource resource = getResourceFromString("YA");
assertTrue(resource.getErrors().isEmpty());
Model model = (Model) resource.getContents().get(0);
assertEquals(0, model.getEnums().size());
assertEquals(0, model.getAbs().size());
assertEquals(0, model.getXbs().size());
assertEquals(1, model.getAs().size());
assertEquals(1, model.getYs().size());
assertEquals(0, model.getYcs().size());
}
Aggregations